Version: 7.0.0

SQLExecute ​

Function ​

If parameter markers exist in a statement, SQLExecute executes a prepared SQL statement using the current values of the parameter markers.

Prototype ​

c
SQLRETURN SQLExecute(SQLHSTMT    StatementHandle);

Parameters ​

Table 1 SQLExecute parameters

Keyword

Parameter Description

StatementHandle

Statement handle of the statement to be executed.

Return Values ​

  • SQL_SUCCESS: The call is successful.

  • SQL_SUCCESS_WITH_INFO: Some warning information is present.

  • SQL_ERROR: The statement execution failed.

  • SQL_NO_DATA: The SQL statement does not return a result set.

  • SQL_INVALID_HANDLE: The input handle is invalid.

Example ​

See: Example