Execute a prepared statement
#include <qdb/qdb.h>
int qdb_stmt_exec( qdb_hdl_t *db,
int stmtid,
qdb_binding_t *bindings,
uint8_t binding_count );
This function executes a statement previously prepared (compiled) by qdb_stmt_init(). If the SQL string that was passed into qdb_stmt_init() contains variable parameters, you can bind data to these parameters by placing the data values in qdb_binding_t structures and passing in these structures through the bindings argument. Parameters that aren't filled in are treated as NULL.
See qdb_stmt_init() for an example on how to compile, execute, and free an SQL statement.
QNX Neutrino
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |