BOOLEAN data typeBOOLEAN provides 1 byte of storage for logical values.BOOLEAN data typeSyntaxBOOLEANCorresponding compile-time Java type
java.lang.Boolean
JDBC metadata type (java.sql.Types)
BOOLEAN
Legal values
The legal values are true, false, and null. BOOLEAN values can be cast to and from character typed values.
For comparisons and ordering operations, true sorts higher than false.
Examplesvalues true
values false
values cast (null as boolean)