Mega Code Archive

 
Categories / MySQL / Data Type
 

The ENUM and SET Column Types

mysql> mysql> CREATE TABLE booleans     -> (     ->     yesno     ENUM('Y','N'),     ->     truefalse ENUM('T','F')     -> ); Query OK, 0 rows affected (0.00 sec) mysql> mysql> drop table booleans; Query OK, 0 rows affected (0.00 sec)