OASQLIP_prepare_stmt
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
This function parses the given SQL statement (checks for syntax errors) and generates a plan for executing the statement. The IP collects information about any parameters in the statement and the description of result columns (if the statement is a SELECT statement). A typical sequence would be a call to OASQLIP_alloc_stmt, followed by OASQLIP_prepare_stmt, then OASQLIP_get_numcols, OASQLIP_execute_stmt, OASQLIP_fetch_row, and so on.
int OASQLIP_prepare_stmt(
SQLIP_HSTMT sqlip_hstmt,
OAWCHAR*szSqlStmt)
Parameters for OASQLIP_prepare_stmt
| Parameter | Type | Description |
| INPUT | ||
| sqlip_hstmt | SQLIP_HSTMT | Statement handle |
| szSqlStmt | OAWCHAR * | Null terminated SQL string |
| RETURN | ||
| int | OADS_SUCCESS OADS_ERROR |