Data type
Size
Precision
Scale
Length
Display size
CHAR
2 G*
DEFLEN
N/A
DEFLEN
DEFLEN
VARCHAR
2 G**
DEFLEN
N/A
DEFLEN
DEFLEN
LONG VARCHAR
2 G
MAXLEN
N/A
MAXLEN
MAXLEN
* default is 1
** default is 254
Data type
Range
Precision
Scale
Length
Display size
DATE
N/A
10*
N/A
6**
10*
* the number of characters in the yyyy-mm-dd format
** the size of the DATE_STRUCT structure
Data type
Range
Precision
Scale
Length
Display size
TIME
N/A
8*
N/A
6**
8*
* the number of characters in the hh:mm:ss format
** the size of the TIME_STRUCT structure
The Smallest Possible Non-zero Numbers
Data type
Value
DOUBLE
2.2250738585072014e-308
REAL
1.175494351e-38
Description of Different Column Values in the Tables
The range of a numeric column refers to the minimum and maximum values the column can store. The size of character columns refers to the maximum length of data that can be stored in the column of that data type.
The precision of a numeric column refers to the maximum number of digits used by the data type of the column. The precision of a non-numeric column refers to the defined length of the column.
The scale of a numeric column refers to the maximum number of digits to the right of the decimal point. Note that for the approximate floating point number columns, the scale is undefined, since the number of digits to the right of the decimal point is not fixed.
The length of a column is the maximum number of bytes returned to the application when data is transferred to its default C type. For character data, the length does not include the null termination byte. Note that the length of a column may differ from the number of bytes needed to store the data on the data source.
The display size of a column is the maximum number of bytes needed to display data in character form.
Copyright © 1992-1997 Solid Information Technology Ltd All rights reserved.