BOOL, BOOLEAN : Boolean « Data Types « MySQL Tutorial






These types are synonyms for TINYINT(1).

A value of zero is considered false.

Non-zero values are considered true:

The constants TRUE and FALSE evaluate to 1 and 0, respectively.

mysql>
mysql> SELECT TRUE, true, FALSE, false;
+------+------+-------+-------+
| TRUE | TRUE | FALSE | FALSE |
+------+------+-------+-------+
|    1 |    1 |     0 |     0 |
+------+------+-------+-------+
1 row in set (0.00 sec)

mysql>








10.4.Boolean
10.4.1.BOOL, BOOLEAN
10.4.2.Using if statement with BOOLEAN
10.4.3.The values TRUE and FALSE are merely aliases for 1 and 0, respectively, as shown here: