lrd_ora8_stmt

Example: lrd_ora8_stmtOracle 8.0 Functions

Prepares a null-terminated SQL statement for execution.

LRDRET lrd_ora8_stmt( void *mpvLRDDBIHandleStmt, char *mpcStmtText, long mliLanguage, long mliMode, int miDBErrorSeverity );

mpvLRDDBIHandleStmt A non-NULL pointer to an LRDDBI Statement Handle.
mpcStmtText A pointer to null-terminated SQL statement text.
mliLanguage One of the LRD_LANGUAGE_ options.
mliMode The database mode.
miDBErrorSeverity The Error Severity Levels of a failure in a database routine.

The lrd_ora8_stmt function prepares an SQL or PL/SQL statement for execution.

The text of the statement is a null-terminated string, without any null characters within the string. For strings containing null characters, use lrd_ora8_stmt_literal or lrd_ora8_stmt_ext.

The lrd_ora8_exec function resets the contents of the SQL statement set by lrd_ora8_stmt; you must provide a new SQL statement after every lrd_ora8_exec function call.

For more details refer to the Function Header File lrd.h in the include directory.

Return Values

See LRD Return Values.

Parameterization

The following argument can be parameterized using standard parameterization: mpcStmtText