SQL programming

These topics describe the iSeries™ server implementation of the Structured Query Language (SQL) using DB2® UDB for iSeries and the DB2 UDB Query Manager and SQL Development Kit Version 5 licensed program.

The examples of SQL statements shown in this topic collection are based on the sample tables and assume the following:

Whenever the examples vary from these assumptions, it is stated.

Because this topic collection is for the application programmer, most of the examples are shown as if they were written in an application program. However, many examples can be slightly changed and run interactively by using interactive SQL. The syntax of an SQL statement, when using interactive SQL, differs slightly from the format of the same statement when it is embedded in a program.

Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.
Related reference
DB2 UDB for iSeries sample tables
Related information
Embedded SQL programming
SQL reference