SQL-J Language Reference
Page 92 of 121

BOOLEAN

Syntax for Column Definition

BOOLEAN

Corresponding Compile-Time Java Type

java.lang.Boolean

JDBC Metadata Type (java.sql.Types)

BIT

Booleans have the value TRUE, FALSE, or NULL.

Booleans cannot be implicitly converted to other types, and other types cannot be converted to booleans, except that a boolean can be inserted into a java.lang.Boolean column (and vice versa) and that JDBC performs some conversions for its get and set methods. CAST allows specific additional conversions.

The value TRUE is considered to sort higher than the value FALSE, for comparisons and ORDER BY.

BOOLEAN Literal Examples

VALUES TRUE
VALUES FALSE