Categories of SQL statements

SQL statements that are supported in Db2 for z/OS® are often organized into various categories.

The following tables shows some of that categories that are used formally and informally to organize that SQL statements that are supported in Db2 for z/OS

SQL schema statements

The SQL schema statements can be used to create, alter, and drop schemas and schema objects. The following SQL schema statements are also categorized as Data Definition Language (DDL) statements:

The following SQL schema statements are also categorized as Data Control Language (DCL) statements:

SQL data statements

The following SQL data statements can be used to retrieve data with queries, and insert, update, and delete operations on tables. SQL data statements are also categorized as Data Manipulation Language (DML) statements.

The following SQL data statements can also be categorized as data change statements:

The following SQL data statements can also be categorized as queries:

The following statements are also considered SQL data statements:

SQL transaction statements

The following SQL transaction statements can be used to set parameters for transactions, and start or terminate transactions.

SQL control statements SQL control statements the execution of a sequence of SQL statements by using a structured programming language to write the body for SQL functions, native SQL procedures, and advanced triggers with SQL control statements. These statements are also categorized as SQL Procedural Language (SQL PL) statements. They are documented separately from most SQL statements. For more information, see SQL procedural language (SQL PL).
SQL connection statements The following SQL connection statements initiate and terminate connections, and allow clients to switch from a session with one database server to another.
SQL session statements

The following SQL session statements set some default values and other parameters of a session.

SQL diagnostic statements

The following SQL diagnostics statements get diagnostics information from the diagnostics area and signal exceptions in SQL routines.

SQL dynamic statements

The following SQL dynamic statements can be used to prepare and execute dynamically-generated SQL statements, and obtain information about them.

SQL host language statements

The following statements can be used in host language application programs.