BOOL, BOOLEAN : Boolean : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » Boolean »

 

BOOL, BOOLEAN


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 |
+------+------+-------+-------+
|    |    |     |     |
+------+------+-------+-------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Data Types
» Boolean