Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual page 225

Table of Contents

Advertisement

Adaptive Server IQ
Option
Datatypes
ASCII
CHAR, VARCHAR
DATE
DATE
DATETIME
TIMESTAMP
or
TIME
TIME
TIME
NULL
all
Data conversions in IQ
CHAPTER 5
Action
By default, Adaptive Server IQ assumes same column width
between source and destination columns, which may cause it to
read input file incorrectly. This option lets you specify a different
width for the input column.
Converts
(or
)
Converts
DATETIME
binary. The input specification is based on either a 12-hour or 24-
hour clock.
Converts ASCII time input of a fixed format to binary.
Lets you specify which input data values to convert to NULL on
insert.
When loading from a flat file, use binary data if you have a choice of
Note
using binary or character data. Using binary input can improve performance by
eliminating conversion costs.
When you use the
INSERT
rather than from a flat file, you cannot use the load conversion options. If the
data requires explicit conversion, you must use one of the conversion
functions,
or
CAST
CONVERT
data to be inserted. If the data is converted implicitly, Adaptive Server IQ
handles the conversion automatically.
An implicit or explicit conversion is required whenever data types in a
statement need to match, but do not. This occurs when you do an
from one data type to another, but it also occurs whenever you
SELECT
compare or compute values for differing data types.
The following tables show:
Which conversions Adaptive Server IQ does implicitly (I)
Which conversions you must do explicitly (E)
Which conversions are unsupported (U)
These conversions apply to data within an Adaptive Server IQ database, or
coming from an Adaptive Server Anywhere database, or any other database
connected as a Specialty Data Store.
Moving Data In and Out of Databases
date input of a fixed format to binary.
ASCII
time or date/time input of a fixed format to
ASCII
statement to insert data directly from a database
, in the
statement where you specify the
SELECT
SELECT
INSERT
205

Advertisement

Table of Contents
loading

Table of Contents