The Datetime Conversion Option - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Converting data on insertion

The DATETIME conversion option

212
Use any character other than Y, M, J, or D to indicate the separator
character you want Adaptive Server IQ to skip over. You can even use
blanks.
If a
format includes only a year and a day number within the year,
DATE
Adaptive Server IQ treats the date as a Julian date. For example, 1998-33
is the 33rd day in the year 1998, or February 2, 1998.
If a year is specified with only two digits, for example "5/27/32", then
Adaptive Server IQ converts it to 19yy or 20yy, depending on the year and
on the setting of the
NEAREST_CENTURY
setting
Default (50)
0
100
For more information, see "Database Options" in the Adaptive Server IQ
Reference Manual.
Use the
conversion option to insert ASCII data that is stored in a
DATETIME
fixed format into a
TIME
converts the ASCII data input to binary and specifies the format of the input
data. (The
format is used internally to interpret the input; it does not
DATETIME
affect the storage or output format of the data.) See the
for more information.
For compatibility with previous releases, you can specify that a column
Note
contains
data. However, such data is stored internally as the
DATETIME
equivalent format,
TIMESTAMP
Here is the syntax:
DATETIME (' input_date/time_format ')
In this UNIX example, slashes are separators in the date portion of the input
data, and colons are separators in the time portion:
LOAD TABLE lineitem(
option.
NEAREST_CENTURY
Year specified as
00-49
50-99
any
any
or
or
TIMESTAMP
DATETIME
.
Years assumed
2000-2049
1950-1999
1900s
2000s
column. This option
conversion format
ASCII

Advertisement

Table of Contents
loading

Table of Contents