Return the result of an SQL statement
#include <qdb/qdb.h> qdb_result_t* qdb_getresult(qdb_hdt_t *hdl);
qdb
After running a SELECT statement on the database, you can retrieve its result using this function. All rows that matched the query are returned into one result, which is returned as a qdb_result_t structure. You can get further information about the result using these functions:
The result needs to be freed by calling qdb_freeresult() once you've finished using it.
A pointer to the query result, or NULL if an error occurred (errno is set).
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |