Syntax
<column_id> ::= <valCOLUMN_NAME> | <valCOLUMN_ID>
valCOLUMN_NAME |
Column name |
valCOLUMN_ID |
Column ID |
Use
This is a
syntax rule for describing columns.You use it in a
command for unloading data to assign a column in the source file to a data field in the target table.DATAEXTRACT cno, last name, zip, place FROM customer
OUTFIELDS
cno 01-04
last name 06-12
zip 14-18
place 20-31
OUTFILE 'customer.data' FORMATTED
The column number
valCOLUMN_ID indicates the position of the column in the SELECT statement.DATAEXTRACT cno, last name, zip, place FROM customer
OUTFIELDS
1 01-04
2 06-12
3 14-18
4 20-31
OUTFILE 'customer.data' FORMATTED