Get the values of the literals TRUE and FALSE. : Boolean « Data Type « SQL / MySQL






Get the values of the literals TRUE and FALSE.

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

mysql>
mysql>

   
    
    
    
    
    
  








Related examples in the same category

1.How MySQL store true and false
2.MySQL evaluates a true expression to 1 and a false expression to 0