Skip to content

默认数据类型映射

Oracle与虚谷数据库的默认数据类型映射如表1所示。

Oracle数据类型Oracle列类型Xugu数据类型Xugu列类型
ROWIDROWIDCHARCHAR
UROWIDUROWIDCHARCHAR
CHAR(size [BYTE | CHAR])CHARCHARCHAR
NCHAR[(size)]NCHARCHAR[(size)]CHAR
VARCHAR(size [BYTE | CHAR])VARCHAR2VARCHARVARCHAR
VARCHAR2(size [BYTE | CHAR])VARCHAR2VARCHARVARCHAR
NVARCHAR2(size)NVARCHAR2VARCHARVARCHAR
NUMBER [(p [, s])]NUMBERNUMERICNUMERIC
NUMERIC [(p [, s])]NUMBERNUMERICNUMERIC
BINARY_DOUBLEBINARY_DOUBLEDOUBLEDOUBLE
BINARY_FLOATBINARY_FLOATDOUBLEDOUBLE
CLOBCLOBCLOBCLOB
NCLOBNCLOBCLOBCLOB
LONGLONGCLOBCLOB
BLOBBLOBBLOBBLOB
LONG RAWLONG RAWBLOBBLOB
DATEDATEDATETIMEDATETIME
TIMESTAMP [(fractional_seconds_precision)]TIMESTAMPDATETIMEDATETIME
TIMESTAMP [(fractional_seconds_precision)] WITH TIME ZONETIMESTAMP WITH TIME ZONETIMESTAMP WITH TIME ZONETIMESTAMP WITH TIME ZONE
INTERVAL DAY [(day_precision)] TO SECOND [(fractional_seconds)]INTERVAL DAY TO SECONDINTERVAL DAY TO SECOND-
INTERVAL YEAR [(year_precision)] TO MONTHINTERVAL YEAR TO MONTHINTERVAL YEAR TO MONTH-