db_cursor_t db_prepare_sql_cursor ( db_t  hdb,
const char *  sql_text,
db_flags_t   
)

Obtain a cursor to access the data from an SQL statement.

Note:
db_prepare_sql_cursor requires ITTIA DB-SQL and is not available in ITTIA DB-Standard.
Parameters:
hdb Database handle.
sql_text SQL query or command.
flags reserved for future use - set to 0.
Returns:
  • Cursor handle.
  • NULL on failure.
Note:
When no longer needed, the cursor must be closed with db_close_cursor.
On failure, one of the following error codes is set:

See also:
db_close_cursor
db_get_error_message, get_db_error, clear_db_error, Error Handling


Copyright © 2005-2008 ITTIA®. All rights reserved.