Syntax Rules for Describing the Data Stream
<standard_time_mask> ::= EUR | INTERNAL | ISO | JIS | USA
'HHHH' |
Hour (four digits) |
'HH' |
Hour (two digits) |
'MM' |
Minutes (two digits, 00-59) |
'SS' |
Seconds (two digits, 00-59) |
Format |
General Form |
Example |
EUR |
'HH.MM.SS' |
'14.30.08' |
INTERNAL |
'HHHHMMSS' |
'00143008' |
ISO/JIS |
'HH:MM:SS' |
'14:30:08' |
USA |
'HH:MM AM (PM)' |
'2:30 PM' |
Minutes and seconds must have two digits. Except in the format INTERNAL, the hours must have two digits. In the format INTERNAL, the hours must have two or four digits.
When data is loaded, hours greater than 24 cause errors, except in the format INTERNAL. When data is unloaded, hours are displayed modulo 24, except in the format INTERNAL. In the format INTERNAL, you can specify hours up to 9999.
Use the standard time definition to specify the format for plain-text values in which TIME columns are entered and displayed.
The default value in the Loader is INTERNAL.
· If you use this standard time definition in the SET command, then you also specify the time format for all subsequent commands. In a single Loader session, this applies until a new SET command is executed.
Time format in the SET command
SET TIME ISO
· You can change the specified time format for individual commands. For more information, see Date Format.
Time format in a command
CREATE TABLE t_test (col1 TIME)
//
INSERT INTO t_test VALUES (TIME)
//
DATAEXTRACT * FROM t_test
OUTSTREAM 't_test.data'
TIME ISO
Example for the content of the target data stream
?2003-05-15?