Java examples for JDBC:JDBC Types
Data Types Mapping Between JDBC and Java
JDBC Type | Java Type |
---|---|
ARRAY | java.sql.Array |
BIGINT | long |
BINARY | byte[] |
BIT | boolean |
BLOB | java.sql.Blob |
BOOLEAN | boolean |
CHAR | String |
CLOB | java.sql.Clob |
DATALINK | java.net.URL |
DATE | java.sql.Date |
DATE | java.time.LocalDate |
DECIMAL | java.math.BigDecimal |
DISTINCT | Mapping of underlying type |
DOUBLE | double |
FLOAT | double |
INTEGER | int |
JAVA_OBJECT | underlying Java class |
LONGNVARCHAR | String |
LONGVARBINARY | byte[] |
LONGVARCHAR | String |
NCHAR | String |
NCLOB | java.sql.NClob |
NUMERIC | java.math.BigDecimal |
NVARCHAR | String |
REAL | float |
REF | java.sql.Ref |
REF_CURSOR | Java.sql.ResultSet |
ROWID | java.sql.RowId |
SMALLINT | short |
SQLXML | java.sql.SQLXML |
STRUCT | java.sql.Struct |
TIME | java.sql.Time |
TIME | java.time.LocalTime |
TIME_WITH_TIMEZONE | java.time.OffsetTime |
TIMESTAMP | java.sql.Timestamp |
TIMESTAMP_WITH_TIMEZONE | java.time.OffsetDateTime |
TINYINT | byte |
VARBINARY | byte[] |
VARCHAR | String |