4D v13ODBC_SQLBindParameter |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13
ODBC_SQLBindParameter
ODBC_SQLBindParameter
The ODBC_SQLBindParameter command binds a parameter and its value in an SQL Statement. stmtID is a valid statement ID returned by ODBC_SQLAllocStmt. paramNumber is the parameter number in the statement defined by ODBC_SQLPrepare, ordered sequentially in increasing parameter order, starting at 1. IOType defines whether this bind parameter is for input, output, or for input and output and can have one of the following values:
paramType is the SQL data type of the parameter and can be equal to one of the following values:
columnSize defines the size of the column or expression of the parameter defined. decimalDigits defines the decimal digits of the column or expression of the parameter defined. paramValPtr is a pointer to a 4D variable or field. strLenOrIndPtr is a pointer to a variable that defines the parameter's length if paramType is of type Text, Picture, or BLOB. Use the ODBC_LenDataAtExec command to convert the actual length so that it can be processed by the MS ODBC API. For more information, please see the SQLBindParameter function in the MS ODBC API Reference at http://msdn.microsoft.com/en-us/library/ms710963(VS.85).aspx. SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE. See the example for the ODBC_SQLExecute command. |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D ODBC Pro 2004 SEE ALSO
ODBC_LenDataAtExec |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||