pszSQL
Specifies the recordset to load as follows:
A NULL pointer.
The name of a table.
An SQL SELECT statement (optionally with an SQL WHERE or ORDER BY clause).
A CALL statement specifying the name of a predefined query (stored procedure).
In an SQL SELECT statement, the field containing the image must be specified first. For example, where photo is the image field and who is the sort field, the statement to select all records in the people table would be as follows:
SELECT photo,* FROM people ORDER BY who