Parameter Data Types
The following table describes how a data type is determined for several types
of parameters, in accordance with SQL-92. For a more comprehensive
specification on inferring the parameter type when other SQL clauses are used, see the
SQL-92 specification.
Location of parameter
| Assumed data type
|
One operand of a binary arithmetic or comparison operator | Same as the other operand
|
The first operand in a BETWEEN clause | Same as the second operand
|
The second or third operand in a BETWEEN clause | Same as the first operand
|
An expression used with IN | Same as the first value or the result column of the subquery
|
A value used with IN | Same as the expression or the first value if there is a parameter marker in
the expression.
|
A pattern value used with LIKE | VARCHAR
|
An update value used with UPDATE | Same as the update column
|