The syntax rules listed here are components of the table description in the commands for importing and exporting application data.
If you want to use keywords as table or user names, you must place them in double quotation marks.
<table_spec> ::= <table_name> <if_condition>
<table_name> |
<valTABLE_NAME> | <valTABLE_SCHEMA>.<valTABLE_NAME> |
<valTABLE_NAME> |
Name of the table Specify the table name in accordance with the SQL conventions. You can also define a user name as a prefix. |
<valTABLE_SCHEMA> |
Name of the schema |
<if_condition> |
IF <condition> |
<condition> |
IMPORT TABLE hotel.room
DATA INSTREAM FILE 'room.data'
PAGE WITH 80% USAGE
The application data from the room.data file is to be imported into the ROOM table.
EXPORT TABLE hotel.hotel
DATA OUTSTREAM FILE 'hotel.data'
LONGFILE INFO 'hotel_info.long'
The application data of HOTEL table is to be exported.
IMPORT TABLE hotel.room
DATA INSTREAM FILE 'room.data'
hno 1
type 2
free 3
price 4
The application data from the room.data file is to be imported into the specified files of the ROOM table.
IMPORT TABLE hotel.room
IF POS 06-11 = 'double'
DATA INSTREAM FILE 'room.data'
hno 01-05
type 06-11
free 12-15
price 16-22
You only want to import those data records from the room.data data stream into the ROOM table in which double is specified as the room type.
You use the syntax rules table_spec or table_name to specify the name(s) of the target table(s) in commands for exporting or importing data.
You can use the syntax rule if_condition to define the selection criteria used to determine which records from the data stream are imported.
This syntax rule allows you to select data records when importing them from a data stream into a target table.
See also: