SQLSetParamInt() function
- Last UpdatedJun 17, 2024
- 1 minute read
The SQLSetParamInt() function sets the value of a parameter to a 16-bit signed integer.
Category
SQL
Syntax
SQLSetParamInt(StatementID, ParameterNumber, Value);
Arguments
StatementID
Integer value that identifies a SQL statement within a query.
ParameterNumber
Integer value that identifies the parameter in the SQL statement identified by the StatementID argument.
Value
16-bit, signed, integer to assign as the value of the specified parameter.
Example
This example sets the second parameter of the third SQL statement to -5.
SQLSetParamInt(3, 2, -5);
See Also
SQLPrepareStatement()