SQL-J Language Reference
Page 110 of 121

TINYINT

TINYINT provides 1 byte of storage for integer values.

Syntax for Column Definition

TINYINT

Corresponding Compile-Time Java Type

java.lang.Byte

JDBC Metadata Type (java.sql.Types)

TINYINT

Minimum Value

128 (java.lang.Byte.MIN_VALUE

Maximum Value

127 (java.lang.Byte.MAX_VALUE)

When mixed with other data types in expressions, the resulting data type follows the rules shown in Numeric Type Promotion in Expressions.

See also Storing Values of One Numeric Data Type in Columns of Another Numeric Data Type.

Literals of the appropriate format always map to INTEGER or LONGINT; use a CAST to convert a literal to a SMALLINT.