Data Types
Data Types
BSIT-3B
Java
BOOLEAN - A boolean value either true, false or null. VARCHAR(size), LONGVARCHAR(size), CHARACTER
VARYING(size), LONG CHARACTER
VARYING(size), TEXT(size) or STRING(size) - A
string of variable length. The size constraint of these string by java.math.BigDecimal and therefore can represent
types do not have to be given and defaults to the maximum numeric values of any precision and scale.
possible size of strings that the database is able to store. The
maximum size of these string types is 1 billion characters.
DATE - A day/month/year value. The DATE type does not
have any near time bounding issues and is able to represent
CLOB - A string of variable length without a size constraint. dates many millennia in the future and the past.
The maximum size of a CLOB object is 1 billion characters. The TIMESTAMP type is internally represented
by java.util.Date.
TINYINT - An 8-bit signed integer value. The range
of TINYINT is -128 to 127. TIME - A time of day value.
SMALLINT - A 16-bit signed integer value. The range TIMESTAMP - A day/month/year and time of day value.
of SMALLINT is -32768 to 32767. The TIMESTAMP type does not have any near time bounding
issues and is able to represent dates many millennia in the
future and the past. The TIMESTAMP type is internally
INTEGER or INT - A 32-bit signed integer value. The range
represented by java.util.Date.
of INTEGER is -2147483648 to 2147483647.