A.1. JDBC 1.x Type Mappings
Table A-1 lists the mappings between the JDBC 1.x types and the compatible Oracle types.
Java type | Oracle type |
---|---|
boolean | NUMBER |
byte | NUMBER |
short | NUMBER |
int | NUMBER |
long | NUMBER |
float | NUMBER |
double | NUMBER |
java.lang.String | CHAR |
java.lang.String | VARCHAR2 |
java.lang.String | LONG |
byte[] | RAW |
byte[] | RAW |
byte[] | LONGRAW |
java.sql.Date | DATE |
java.sql.Time | DATE |
java.sql.Timestamp | DATE |
java.math.BigDecimal | NUMBER |
java.math.BigDecimal | NUMBER |
Get Java Programming with Oracle SQLJ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.