SMALLINT
SMALLINT
SMALLINT provides 2 bytes of storage.
Syntax
SMALLINT
Corresponding Compile-Time Java Type
java.lang.Short
JDBC Metadata Type (java.sql.Types)
SMALLINT
Minimum Value
-32768 (java.lang.Short.MIN_VALUE)
Maximum Value
32767 (java.lang.Short.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.
Constants in the appropriate format always map to INTEGER or BIGINT, depending on their length.
Previous Page
Next Page
Table of Contents
Index