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---+---)--' |