previous | start | next

Some SQL Types and Their Corresponding Java Types

SQL Data Type Java Data Type
INTEGER or INT int
REAL float
DOUBLE double
DECIMAL (m, n) Fixed-point decimal numbers with m total digits and n digits after the decimal point; similar to BigDecimal.
BOOLEAN boolean
CHARACTER (n) or CHAR (n) Fixed-length string of length n; similar to String.

previous | start | next