Get started with SQL

This topic describes how to create and work with schemas, tables, and views using SQL statements in interactive SQL.

The syntax for each of the SQL statements used in this chapter is described in detail and descriptions of how to use SQL statements and clauses in more complex situations are provided in the SQL Reference topic.

In this article, the examples use the interactive SQL interface to show the use of SQL statements. Each SQL interface provides methods for using SQL statements to define tables, views, and other objects, methods for updating the objects, and methods for reading data from the objects.

First, start interactive SQL:

  1. Type STRSQL NAMING(*SQL).
  2. Press Enter.
When the Enter SQL Statements display appears, you are ready to start typing SQL statements.

If you are reusing an existing interactive SQL session, make sure that you set the naming mode to SQL naming. You can specify this on the F13 (Services) panel, option 1 (Change session attributes).

Related information
SQL Programming