ABIGetSqlText
ABIGetSqlText#
Syntax#
int ABIGetSqlText (
ABISqlText **aHandle,
int astmtID );
Arguments#
Data Type | Argument | In/Ouput | Description |
---|---|---|---|
ABISqlText ** | aHandle | Output | The pointer which retrieves the memory address of the structure array that stores the result set |
int | astmtID | Input | The session ID to be selected If aStmtID is 0, all information of the currently active statement is returned. |
Return Values#
If the function succeeds, it returns 0. If unsuccessful, an error code is returned as a negative integer value.
Description#
This is a function used for viewing SQL statement, the start time of a query, and checking whether or not to execute a query that a statement is executing through the statement identifier.
Example#
Please refer to sample_5.c for an application related to this function.
ABISqlText *sSqlText;
int sRet;
/* Selects the SQL statement of the statement which ID is 2 */
sRet = ABIGetSqlText( &sSqlText, 2 );