SQL_Query Function

Executes a simple query and returns a new query Handle for receiving the results.

DBResultSet SQL_Query(Handle database, const char[] query, int len)


Handle database

A database Handle.

const char[] query

Query string.

int len

Optional parameter to specify the query length, in bytes. This can be used to send binary queries that have a premature terminator.

Return Value

A new Query Handle on success, INVALID_HANDLE otherwise. The Handle must be freed with CloseHandle().


Invalid database Handle.