Oracle |
Java |
|
NUMERIC| REAL |
NUMBER| FLOAT (24) |
|
BIT、TINYBLOB| LONGBLOB、MEDIUMBLOB、BLOB |
RAW| BLOB RAW |
byte[] |
TINYINT|BIGINT| INT、INTEGER| SMALLINT| MEDIUMINT |
NUMBER(3,0)|NUMBER(19,0)| NUMBER(10,0)| NUMBER(5,0)| NUMBER(7,0) |
java.lang.Boolean|java.lang.Long| java.lang.Integer| java.lang.Integer| java.lang.Integer |
DECIMAL| DOUBLE| FLOAT |
FLOAT (24)| FLOAT |
java.math.BigDecimal| java.lang.Double| java.lang.Float |
SET、TINYTEXT | TEXT、VARCHAR|(CHAR| ENUM| LONGTEXT、MEDIUMTEXT) |
VARCHAR2| VARCHAR2 CLOB|(CHAR| VARCHAR2| CLOB RAW) |
java.lang.String|java.lang.String| java.lang.String |
TIME| TIMESTAMP| YEAR |
DATE| DATE| NUMBER |
sqlServer |
Oracle |
TIMESTAMP|BIT|TINYINT|SMALLINT|INTEGER| SMALLMONEY|MONEY |
NUMBER|NUMBER(1)|NUMBER(3)| NUMBER(6)| NUMBER(10)|NUMBER(10,4)|NUMBER(19,4) |
REAL|FLOAT |
FLOAT|FLOAT |
BINARY(N)|VARBINARY |
RAW(N) or BLOB| RAW(N) or BLOB |
DATETIME|SMALL-DATETIME |
DATE|DATE |
VARCHAR(N)|NVARCHAR(N)|SYSNAME |
VARCHAR2(N)|VARCHAR(2*N)|VARCHAR2(30)、 VARCHAR2(128) |
TEXT|IMAGE|NCHAR(N) |
CLOB|BLOB|CHAR(N*2) |