4D v13ODBC_SQLFetch |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13
ODBC_SQLFetch
ODBC_SQLFetch
The ODBC_SQLFetch command fetches the next rowset of data from the result set and returns data for all bound columns. For more information, please see the SQLFetch function in the MS ODBC API Reference at http://msdn.microsoft.com/en-us/library/ms712424(VS.85).aspx. SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE. The following method selects all the records from the Employee table, ccreates a bind with our data source's Employee table and its four fields specified by the ODBC_SQLPrepare and ODBC_SQLBindCol commands, and then creates one record for each row of data in the 4D table [Employees]: $result:=ODBC_SQLPrepare($statementID;"SELECT * FROM Employee") |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D ODBC Pro 2004 SEE ALSO
ODBC_SQLBindCol |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||