GBase 8s数据类型与java.sql.Types对应关系

GBase 8s数据类型与java.sql.Types对应关系

对应版本:3.6.2_2

GBase 8s类型类型colTypesql_data_typejava.sql.Typesjava类型名称
SMALLINT115SMALLINT
INTEGER224INTEGER
BIGINT5217-5BIGINT
INT81717-5BIGINT
SMALLFLOAT447REAL
FLOAT338DOUBLE
DECIMAL553DECIMAL
MONEY853DECIMAL
CHAR001CHAR
NCHAR1501CHAR
VARCHAR131312VARCHAR
NVARCHAR161312VARCHAR
VARCHAR2636363未定义
NVARCHAR2646464未定义
LVARCHAR4043-1LONGVARCHAR
BOOLEAN414516BOOLEAN
TEXT12101-1LONGVARCHAR  
BYTE11102-4LONGVARBINARY  
CLOB411012005CLOB
BLOB411022004BLOB
SERIAL624INTEGER
SERIAL81817-5BIGINT
BIGSERIAL5317-5BIGINT
DATETIME YEAR TO SECOND101093TIMESTAMP
DATETIME HOUR TO SECOND101092TIME
DATE7791DATE
RAW40432000JAVA_OBJECT
TIMESTAMP WITH TIME ZONE6592014TIMESTAMP_WITH_TIMEZONE
JSON40432000JAVA_OBJECT
BSON40432000JAVA_OBJECT
INTERVAL1401CHAR
LIST21491111OTHER
SET(LVARCHAR)19431111OTHER
MULTISET(SENDRECEIVE)20491111OTHER
CLOB24043-1LONGVARCHAR
NULL9
ROW22222002STRUCT
COLLECTION23
ROWREF24
REFSERIAL842

备注:
1,此文档基于jdbc包3.6.1_2和数据库版本3.6.2_2;
2,coltype为40(可变长)和41(不可变长)的为Opaque数据类型;
3,sql_data_type指的是基于数据类型,与coltype或java.sql.Types类型

标签: gbase 8s, 数据类型, GBase, java.sql.Types, java类型

添加新评论