Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » UltraLite - C and C++ Programming » Application development » UltraLite C++ application development using embedded SQL » Data fetching

 

Single row fetching

A single row query retrieves at most one row from the database. A single row query SELECT statement may have an INTO clause following the select list and before the FROM clause. The INTO clause contains a list of host variables to receive the value for each select list item. There must be the same number of host variables as there are select list items. The host variables may be accompanied by indicator variables to indicate NULL results.

When the SELECT statement is executed, the database server retrieves the results and places them in the host variables.

  • If the query returns more than one row, the database server returns the SQLE_TOO_MANY_RECORDS error.

  • If the query returns no rows, the SQLE_NOTFOUND warning is returned.

 See also
 Example