Sybase Adaptive Server Anywhere Reference page 287

Table of Contents

Advertisement

Usage
Standards and
compatibility
See also
DECIMAL data type [Numeric]
Function
Syntax
Usage
Parameters
Standards and
compatibility
The BIGINT data type is an exact numeric data type: its accuracy is
preserved after arithmetic operations.
A BIGINT value requires 8 bytes of storage.
The range for signed BIGINT values is from ( -2e63) to ( +2e63
).
The range for unsigned BIGINT values is from 0 to ( 2e64 - 1 ).
By default, the data type is signed.
Vendor extension.
SQL/92
Sybase
Not supported in Adaptive Server Enterprise.
"INT or INTEGER data type" on page 271
"TINYINT data type" on page 273
"SMALLINT data type" on page 273
A decimal number with precision total digits and with scale of the digits
after the decimal point.
{ DECIMAL | DEC } [ ( precision [ , scale ] ) ]
The DECIMAL data type is an exact numeric data type; its accuracy is
preserved to the least significant digit after arithmetic operations.
The storage required for a decimal number can be estimated as:
2 + int( ( before+1 ) / 2 ) + int( ( after + 1 )/2 )
where int takes the integer portion of its argument, and before and after are
the number of significant digits before and after the decimal point. The
storage is based on the value being stored, not on the maximum precision
and scale allowed in the column.
precision
An integer expression that specifies the number of digits in the
expression. The default setting is 30.
scale
An integer expression that specifies the number of digits after the
decimal point. The default setting is 6.
The defaults can be changed by setting database options. For information,
see "PRECISION option" on page 205 and "SCALE option" on page 210.
Compatible with SQL/92.
SQL/92
Sybase
Compatible with Adaptive Server Enterprise.
Chapter 7 SQL Data Types
-1
269

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?

Questions and answers

Table of Contents