- Executes a query. Returns 1 if the query succeeded. Returns 0 if the query failed. NOTE: You can call this multiple times as long as its parent connection is kept open. Each time the result set will be freed from the previous call.