Adaptive Server Enterprise Data Type Equivalents - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Matching Adaptive Server Enterprise data types

Adaptive Server Enterprise data type equivalents

Adaptive
Server
Enterprise
Adaptive Server IQ
Datatype
Datatype
,
int
INT
BIGINT
,
INT
or
NUMERIC
numeric
DECIMAL
with appropriate precision
decimal
DECIMAL
with appropriate precision
smallint
SMALLINT
tinyint
TINYINT
bit
BIT
Adaptive Server
Enterprise Datatype
float (precision)
218
The table below indicates the Adaptive Server Enterprise exact numeric types
and the Adaptive Server IQ equivalents.
Table 5-11: Integer data types
Notes
,
Adaptive Server IQ does not allow scaled integers, such as
UNSIGNED
,
INT(7,3). Data in the form INT(precision,scale) is converted to
UNSIGNED BIGINT
NUMERIC
IQ versions prior to 12.0, and from Adaptive Server Enterprise,
in which
and 2,147,483,647, inclusive.
To handle larger integer values, you can use a
unsigned integer (
datatype. With
value. There is no positive or negative indication; all numbers
are assumed to be positive, so the value can go up to
4,294,967,295.
or
If the precision of the Adaptive Server IQdatatype you define
NUMERIC
is too small to store the Adaptive Server Enterprise value, the
value converts to NULL.
or
NUMERIC
See above.
or
Adaptive Server IQ
NUMERIC
scale. Adaptive Server Enterprise
converted to
Adaptive Server IQ
and scale. Adaptive Server Enterprise
converted to
The following table indicates the Adaptive Server Enterprise approximate data
types and the Adaptive Server IQ equivalents.
Table 5-12: Approximate numeric data types
Adaptive Server IQ
Datatype
Notes
IQ supports greater precision for
FLOAT (precision)
HNG
(precision,scale). This differs from Adaptive Server
datatypes can be values between -2,147,483,648
int
UNSIGNED INT
, the last bit is used as part of the
UNSIGNED INT
does not allow precision and
SMALLINT
NUMERIC(precision,scale)
columns do not allow precision
TINYINT
NUMERIC(precision,scale)
indexes do not allow
FLOAT
BIGINT
, an
), or an
UNSIGNED BIGINT
is
smallint(precision,scale)
See
INT
above.
is
tinyint(precision,scale)
. See
above.
INT
FLOAT
,
, or
data.
REAL
DOUBLE

Advertisement

Table of Contents
loading

Table of Contents