Updated on 2023-07-03 GMT+08:00

GaussDB(for MySQL)->Oracle

Table 1 Data type mapping

Data Type (GaussDB for MySQL)

Data Type (Oracle)

Whether to Support Mapping

ENUM

VARCHAR2

Yes

SET

VARCHAR2

Yes

VARCHAR

VARCHAR2

Yes

NUMERIC

NUMBER

Yes

FLOAT

BINARY_FLOAT

Yes

TIMESTAMP

TIMESTAMP WITH TIME ZONE

Yes

DATETIME

TIMESTAMP

Yes

DATE

DATE

Yes

TIME

INVERVAL DAY TO SECOND

Yes

YEAR

VARCHAR2

Yes

BIT

RAW

Yes

CLOB

CLOB

Yes

VARBINARY

BLOB

Yes

BINARY

RAW

Yes

DOUBLE

BINARY_DOUBLE

Yes

DECIMAL

NUMBER

Yes

INT

NUMBER

Yes

TINYINT

NUMBER

Yes

SMALLINT

NUMBER

Yes

MEDIUMINT

NUMBER

Yes

BIGINT

NUMBER

Yes

BLOB

BLOB

Yes

LONGBLOB

BLOB

Yes

MEDIUMBLOB

BLOB

Yes

CHAR

CHAR

Yes

TEXT

CLOB

Yes

JSON

CLOB

Yes

GEOMETRY

-

No