Previous Topic: SELECT Statement—Extract Relational Table Data

Next Topic: UPDATE Statement—Insert Values

Output from the SELECT Statement

Most SQL statements modify relational tables, and their only output is the SQLCODE variable. However, the SELECT statement returns data stored in selected rows. How this data is treated depends on the source from which you invoked SQL.

Examples: SELECT Statement

The following examples illustrate the use of the SELECT statement.