Updated on 2024-11-30 GMT+08:00

DB2 for LUW->GaussDB(DWS)

Table 1 Data type mapping

Data Type (DB2 for LUW)

Data Type (GaussDB(DWS))

Whether to Support Mapping

CHARACTER

CHARACTER VARYING

Yes

VARCHAR

CHARACTER VARYING

Yes

LONG VARCHAR

TEXT

Yes

GRAPHIC

CHARACTER VARYING

Yes

VARGRAPHIC

CHARACTER VARYING

Yes

LONG VARGRAPHIC

TEXT

Yes

CLOB

TEXT

Yes

DBCLOB

TEXT

Yes

BLOB

BYTEA

Yes

BINARY

BYTEA

Yes

VARBINARY

BYTEA

Yes

REAL

FLOAT4

Yes

DOUBLE

DOUBLE PRECISION

Yes

SMALLINT

INT2

Yes

INTEGER

INT4

Yes

BIGINT

INT8

Yes

DECIMAL

NUMERIC

Yes

DECFLOAT

NUMERIC(65,10)

Yes

DATE

TIMESTAMP

Yes

TIME

TIME

Yes

TIMESTAMP

TIMESTAMP(6) WITHOUT TIME ZONE

Yes

XML

TEXT

Yes

BOOLEAN

BOOL

Yes

DB2SECURITYLABEL

CHARACTER VARYING(128)

Yes