Syntax Rules for Describing the Data Stream
<standard_timestamp_mask> ::= EUR | INTERNAL | ISO | JIS | USA
'YYYY' |
Year (four digits) |
'MM' |
Month (two digits, 01-12) |
'DD' |
Day (two digits, 01-31) |
'HH' |
Seconds (two digits, 0-24) |
'MM' |
Minutes (two digits, 00-59) |
'SS' |
Seconds (two digits, 00-59) |
'NNNNNN' |
Microseconds (six digits) |
Format |
General Form |
Example |
EUR/JIS/USA |
'YYYY-MM-DD-HH.MM.SS.NNNNNN' |
'2003-01-23-14.30.08.456234' |
INTERNAL |
'YYYYMMDDHHMMSSNNNNNN' |
'20030123143008456234' |
ISO |
'YYYY-MM-DD HH:MM:SS.NNNNNN' |
'2003-01-23 14:30:08.456234' |
Years must
have four digits. Months and
days must have two digits.
Hours,
minutes, and seconds must have two digits.
For
microseconds, you can choose any number of digits from 0 to 6.
Use the standard time stamp definition to determine the format for plain-text values, in which TIMESTAMP columns are entered and displayed.
The default value in the Loader is INTERNAL.
· If you use this standard time stamp definition in the SET command, then you also specify the time stamp format for all subsequent commands. In a single Loader session, this applies until a new SET command is executed.
Time stamp format in the SET command
SET TIMESTAMP ISO
· You can change the specified time stamp format for individual commands. For more information, see Date Format.
Time stamp format in a command
CREATE TABLE ts_test (col1 TIMESTAMP)
//
INSERT INTO ts_test VALUES (TIMESTAMP)
//
DATAEXTRACT * FROM ts_test
OUTSTREAM 'ts_test.data'
TIMESTAMP ISO
Example for the content of the target data stream
?2003-05-15 11:36:55.123456?