In Derby, the java.sql.Types are mapped to SQL data types
The following table shows the mapping of java.sql.Types to SQL types.
java.sql.Types | SQL Types |
---|---|
BIGINT | BIGINT |
BINARY | CHAR FOR BIT DATA |
BLOB | BLOB |
BOOLEAN | BOOLEAN |
CHAR | CHAR |
CLOB | CLOB |
DATE | DATE |
DECIMAL | DECIMAL |
DOUBLE | DOUBLE PRECISION |
FLOAT | DOUBLE PRECISION1 |
INTEGER | INTEGER |
LONGVARBINARY | LONG VARCHAR FOR BIT DATA |
LONGVARCHAR | LONG VARCHAR |
NULL | Not a data type; always a value of a particular type |
NUMERIC | DECIMAL |
REAL | REAL |
SMALLINT | SMALLINT |
SQLXML2 | XML |
TIME | TIME |
TIMESTAMP | TIMESTAMP |
VARBINARY | VARCHAR FOR BIT DATA |
VARCHAR | VARCHAR |