This book defines the DB2® UDB SQL language elements for DB2 UDB for iSeries.
The examples of SQL statements shown in this guide assume the following:
CALL QSYS.CREATE_SQL_SAMPLE ('your-schema-name')
Whenever the examples vary from these assumptions, it is stated.
See also Code disclaimer information.
This document contains programming examples.
IBM® grants you a nonexclusive copyright license to use all programming code examples from which you can generate similar function tailored to your own specific needs.
All sample code is provided by IBM for illustrative purposes only. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs.
All programs contained herein are provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.
The following rules apply to the syntax diagrams used in this book:
The >>--- symbol indicates the beginning of a statement.
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 other than complete statements start with the |--- symbol and end with the ---| symbol.
>>-required_item-----------------------------------------------><
>>-required_item--+---------------+---------------------------->< '-optional_item-'
If an item appears above the main path, that item is optional, and has no effect on the execution of the statement and is used only for readability.
.-optional_item-. >>-required_item--+---------------+----------------------------><
If one of the items must be chosen, one item of the stack appears on the main path.
>>-required_item--+-required_choice-+-------------------------->< '-required_choice-'
If choosing one of the items is optional, the entire stack appears below the main path.
>>-required_item--+-----------------+-------------------------->< +-optional_choice-+ '-optional_choice-'
If one of the items is the default, it will appear above the main path and the remaining choices will be shown below.
.-default_choice--. >>-required_item--+-----------------+-------------------------->< +-optional_choice-+ '-optional_choice-'
If an optional item has a default when it is not specified, the default appears above the main path.
>>-required_item--+--------------------------------------+----->< | .-default_choice--. | +-optional_choice--+-required_choice-+-+ | '-required_choice-' | '-optional_choice----------------------'
.-----------------. V | >>-required_item----repeatable_item-+--------------------------><
If the repeat arrow contains a comma, you must separate repeated items with a comma.
.-,---------------. V | >>-required_item----repeatable_item-+--------------------------><
A repeat arrow above a stack indicates that you can repeat the items in the stack.
>>-required_item--| parameter-block |-------------------------->< parameter-block: |--+-parameter1-----------------+-------------------------------| '-parameter2--+-parameter3-+-' '-parameter4-'
This section specifies some conventions which are used throughout this manual.
The following conventions are used in this book.
Bold | Indicates SQL keywords used in examples and when introducing descriptions involving the keyword. |
Italics | Indicates one of the following:
|
When mixed data values are shown in the examples, the following conventions apply:
IBM is committed to providing interfaces and documentation that are easily accessible to the disabled community. For general information on IBM's Accessibility support visit the Accessibility Center at http://www.ibm.com/able.
SQL accessibility support falls in two main categories.
The IBM Home Page Reader can be used to access all descriptive text in this book, all articles in the SQL Information Center, and all SQL messages. Due to the complex nature of SQL syntax diagrams, however, the reader will skip syntax diagrams. Two alternatives are provided for better ease of use:
Interactive SQL and Query Manager are traditional file interfaces that provide prompting for SQL statements. These are part of the DB2 UDB Query Manager and SQL Development Kit. For more information about Interactive SQL and Query Manager, see the SQL Programming and Query Manager Use books.
SQL Assist is a graphical user interface that provides a prompted interface to SQL statements. This is part of iSeries Navigator. For more information, see the iSeries Navigator online help and the Information Center.