skip to main content
IP API Reference for C/C++ : IP API for C/C++ : OASQLIP_prepare_stmt
 

OASQLIP_prepare_stmt

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)
 
Table 41: 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

See also 

OASQLIP_alloc_stmt
OASQLIP_prepare_stmt
OASQLIP_get_numcols
, OASQLIP_execute_stmt
OASQLIP_fetch_row