This reference pictorially summarizes Structured Query Language statements used by:
It also contains information about the following:
This manual is intended as a quick reference for application developers, system programmers, and database administrators who write application programs using SQL, or use ISQL, or the Database Services Utility in a DB2 Server for VM or DB2 Server for VSE environment. It contains syntax diagrams for SQL statements, ISQL commands, operator commands, and DBS Utility commands.
It is assumed that the VM user has some knowledge of VM (CMS, CP), a programming language, and structured query language (SQL). It is assumed that the VSE user has some knowledge of a VSE system, a CICS/VSE(R) system or batch as applicable, a programming language, and structured query language (SQL).
Both the VSE and VM user should be familiar with the information in the DB2 Server for VSE & VM Overview. For further information on the required environment, refer to either the DB2 Server for VM Program Directory or the DB2 Server for VSE Program Directory for your database manager.
For more information about the DB2 Server for VM and DB2 Server for VSE database managers, ISQL, and the DBS Utility, refer to the following IBM publications for DB2 Server for VM or DB2 Server for VSE as appropriate:
Throughout this manual, syntax is described using the structure defined below.
The >>--- symbol indicates the beginning of a statement or command.
The ---> symbol indicates that the statement syntax is continued on the next line.
The >--- symbol indicates that a statement is continued from the previous line.
The --->< symbol indicates the end of a statement.
Diagrams of syntactical units that are not complete statements start with the >--- symbol and end with the ---> symbol.
>>-SAVE-------------------------------------------------------->< |
Others must be followed by one or more keywords or variables. For example:
>>-SET AUTOCOMMIT OFF------------------------------------------>< |
>>-DROP SYNONYM--synonym--------------------------------------->< |
>>-SHOW DBSPACE--integer--------------------------------------->< |
This command might appear as:
SHOW DBSPACE 1
>>-CREATE----+---------+--INDEX-------------------------------->< '-UNIQUE--' |
This statement could appear as either:
CREATE INDEX
or
CREATE UNIQUE INDEX
If you must choose one of the items, one item appears on the main path. For example:
>>-SHOW LOCK DBSPACE----+-ALL-----+---------------------------->< '-integer-' |
Here, the command could be either:
SHOW LOCK DBSPACE ALL
or
SHOW LOCK DBSPACE 1
If choosing one of the items is optional, the entire stack appears below the main path. For example:
>>-BACKWARD----+---------+------------------------------------->< +-integer-+ '-MAX-----' |
Here, the command could be:
BACKWARD
or
BACKWARD 2
or
BACKWARD MAX
.---------. V | >>-ERASE-------name---+---------------------------------------->< |
This statement could appear as:
ERASE NAME1
or
ERASE NAME1 NAME2
A repeat symbol above a stack indicates that you can make more than one choice from the stacked items, or repeat a choice. For example:
.-,-----------------------. V | >>-VALUES--(------+-constant-----------+--+--)----------------->< +-host_variable_list-+ +-NULL---------------+ '-special_register---' |
.-ASC--. >>-+------+---------------------------------------------------->< '-DESC-' |
In the following example, if you enter the optional keyword PCTFREE =, you also have to specify one of its associated optional parameters. If you do not enter PCTFREE =, the database manager will set it to the default value of 10.
.-PCTFREE = 10------. >>-+-------------------+--------------------------------------->< '-PCTFREE = integer-' |
.-PRIVILEGES--. >>-REVOKE ALL----+-------------+------------------------------->< |
>>-+----------------------------+---| fieldproc_block |-------->< '-NOT NULL--+-------------+--' +-UNIQUE------+ '-PRIMARY KEY-' |
fieldproc_block |--FIELDPROC--program_name----+-------------------------+-------| | .-,-----------. | | V | | '-(-----constant---+---)--' |
|Your feedback is important in helping to provide the most accurate and |high-quality information. If you have any comments about this book or |any other DB2 Server for VSE & VM documentation: |
|http://www-4.ibm.com/software/data/db2/vse-vm/
Format | Address | |
---|---|---|
Internet | torrcf@ca.ibm.com | |
Facsimile | (416) 448-6161 (Attention RCF Coordinator) |
|Be sure to include the name of the book, the form number (including the |suffix), and the page, section title, or topic you are commenting on.
|If you choose to respond through the Internet, please include either your |entire Internet network address, or a postal address.
When mixed data values are shown in examples, the following conventions are used:
Some words have been shortened in the syntax diagrams in this book. The words are: