Data type Conversion Table
The following table summarizes the mapping from the ORACLE Data types to corresponding ALTIBASE HDB data types.
Category |
ORACLE |
ALTIBASE HDB |
Comments |
---|---|---|---|
Character |
CHAR(n) |
CHAR(n) |
ALTIBASE HDB can store 32K characters in CHAR column. |
|
CHARACTER(n) |
CHAR(n) |
|
|
VARCHAR(n) |
VARCHAR (n) |
ALTIBASE HDB can store 32K characters in VARCHAR column. |
|
VARCHAR2(n) |
VARCHAR2(n) |
ALTIBASE HDB can store 32K characters in VARCHAR2 column. |
|
NCHAR(n) |
NCHAR(n) |
ALTIBASE HDB can store 16000bytes(UTF-16), 10666bytes(UTF-8) in NCHAR column. |
|
NVARCHAR(n) |
NVARCHAR(n) |
ALTIBASE HDB can store 16000bytes(UTF-16), 10666(UTF-8) in NVARCHAR column. |
Long |
LONG |
CLOB |
ALTIBASE HDB can store max 2G bytes in CLOB column. |
|
LONG RAW |
BLOB |
ALTIBASE HDB can store max 2G bytes in BLOB column. |
|
RAW |
BLOB |
ALTIBASE HDB can store max 2G bytes in BLOB column. |
LOB |
BLOB |
BLOB |
ALTIBASE can store max 2G bytes in BLOB column. |
|
CLOB |
CLOB |
ALTIBASE HDB can store max 2G bytes in CLOB column. |
|
NCLOB |
Not supported |
|
|
BFILE |
Not supported |
Actually this data type is not supported in ALTIBASE HDB. |
Numeric |
NUMBER(p,s) |
NUMBER(p,s) |
|
|
FLOAT(p) |
FLOAT(p) |
|
|
BINARY_FLOAT |
REAL |
ALTIBAE HDB REAL type is equivalent to the float type in C Language. |
|
BIANRY_DOUBLE |
DOUBLE |
ALTIBAE HDB DOUBLE type is equivalent to the double type in C Language. |
|
NUMERIC(p,s) |
NUMERIC(p,s) |
|
|
DECIMAL(p,s) |
DECIMAL(p,s) |
|
|
INT |
NUMBER(38) |
|
|
INTEGER |
NUMBER(38) |
|
|
SMALLINT |
NUMBER(38) |
|
|
FLOAT |
FLOAT(38) |
ORACLE FLOAT type is equivalent to FLOAT(126). |
|
DOUBLE |
FLOAT(38) |
ORACLE FLOAT type is equivalent to FLOAT(126). |
|
REAL |
FLOAT(63) |
ORACLE FLOAT type is equivalent to FLOAT(63). |
Date |
DATE |
DATE |
|
|
TIMESTAMP |
미지원 |
TIMESTAMP data type in ALTIBASE HDB is different with ORACLE's timestamp although they appear to be same in a name. |
|
INTERVAL YEAR TO MONTH |
미지원 |
|
|
INTERVAL DAY TO SECOND |
미지원 |
|
ROWID |
ROWID |
미지원 |
|
|
UROWID(n) |
미지원 |
|
Category |
ORACLE |
ALTIBASE HDB |
Description |
---|---|---|---|
Character |
CHAR(n) |
CHAR(n) |
ALTIBASE HDB can store 32K characters in CHAR column. |
|
CHARACTER(n) |
CHAR(n) |
|
|
VARCHAR(n) |
VARCHAR (n) |
ALTIBASE HDB can store 32K characters in VARCHAR column. |
|
VARCHAR2(n) |
VARCHAR2(n) |
ALTIBASE HDB can store 32K characters in VARCHAR2 column. |
|
NCHAR(n) |
NCHAR(n) |
ALTIBASE HDB can store 16000bytes(UTF-16), 10666(UTF-8) in NCHAR column. |
|
NVARCHAR(n) |
NVARCHAR(n) |
ALTIBASE HDB can store 16000bytes(UTF-16), 10666(UTF-8) in NVARCHAR column. |
Long |
LONG |
CLOB |
ALTIBASE HDB can store max 2G bytes in CLOB column. |
|
LONG RAW |
BLOB |
ALTIBASE HDB can store max 2G bytes in BLOB column. |
|
RAW |
BLOB |
ALTIBASE HDB can store max 2G bytes in BLOB column. |
LOB |
BLOB |
BLOB |
ALTIBASE HDB can store max 2G bytes in BLOB column. |
|
CLOB |
CLOB |
ALTIBASE HDB can store max 2G bytes in CLOB column. |
|
NCLOB |
Not supported |
|
|
BFILE |
Not supported |
Actually this data type is not supported in ALTIBASE HDB. |
Numeric |
NUMBER(p,s) |
NUMBER(p,s) |
|
|
FLOAT(p) |
FLOAT(p) |
|
|
BINARY_FLOAT |
REAL |
ALTIBASE HDB REAL type is equivalent to the float type in C Language. |
|
BIANRY_DOUBLE |
DOUBLE |
ALTIBASE HDB DOUBLE type is equivalent to the double type in C Language. |
|
NUMERIC(p,s) |
NUMERIC(p,s) |
|
|
DECIMAL(p,s) |
DECIMAL(p,s) |
|
|
INT |
NUMBER(38) |
|
|
INTEGER |
NUMBER(38) |
|
|
SMALLINT |
NUMBER(38) |
|
|
FLOAT |
FLOAT(38) |
ORACLE FLOAT type is equivalent FLOAT(126). |
|
DOUBLE |
FLOAT(38) |
ORACLE FLOAT type is equivalent FLOAT(126). |
|
REAL |
FLOAT(63) |
ORACLE FLOAT type is equivalent FLOAT(63). |
Date |
DATE |
DATE |
|
|
TIMESTAMP |
Not supported |
TIMESTAMP data type in ALTIBASE HDB is different with ORACLE's TIMESTAMP although they appear to be same in a name. |
|
INTERVAL YEAR TO MONTH |
Not supported |
|
|
INTERVAL DAY TO SECOND |
Not supported |
|
ROWID |
ROWID |
Not supported |
|
|
UROWID(n) |
Not supported |
|