SQL_Query

Last Updated2014-12-15
Created At2007-06-01

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

native DBResultSet SQL_Query(Handle database, const char[] query, int len = -1)

Parameters

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

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

Error

Invalid database Handle.