The data type specifies the range of permitted values for a column. In SQL, the data type for a column is defined with the column definition (see "Column") in the statements CREATE TABLE or ALTER TABLE.
BLOBs (Binary Large Objects) are based on existing data types in SESAM/SQL and are therefore not a new data type in themselves. The structure and method for processing such objects are described in section “BLOB constructs”.
Data type | SQL syntax | Range of values |
Alphanumeric data | CHAR[ACTER] [(length)] | Alphanumeric string of length The CHAR data type is stored with |
Alphanumeric data | { CHAR[ACTER] VARYING(max) | | Alphanumeric string shorter than |
National data type: | { NATIONAL CHAR[ACTER] | | National sring of length cu_length The NCHAR data type is stored |
National data type: | { NATIONAL CHAR[ACTER] VARYING | | National stringshorter than or |
Numeric: | SMALLINT | -215 through 2<sup>15 </sup>through 215-1 |
Numeric: | INT[EGER] | -231 through 231-1 |
Numeric: | NUMERIC [(precision[,scale])] | Fixed-point numbers with a value 10-scale through 10precision-scale-10-scale The NUMERIC and DECIMAL |
Numeric: | DEC[IMAL] [(precision[,scale])] | |
Numeric: | REAL | Floating-point numbers with a 5.4E-79 through 7.2E+75 |
Numeric: | DOUBLE PRECISION | |
Numeric: | FLOAT[(precision)] | |
Time data type: | DATE | Date specification from the range |
Time data type: | TIME(3) | Time specification from the range |
Time data type: | TIMESTAMP(3) | Date specification as for DATE, |
Tabelle 30: Data types in SESAM/SQL