Mega Code Archive

 
Categories / MySQL / Data Type
 

Enum value index

mysql> mysql> CREATE TABLE t (age INT, siblings ENUM('0','1','2','3','>3')); Query OK, 0 rows affected (0.00 sec) mysql> mysql> INSERT INTO t (age,siblings) VALUES(14,'3'); Query OK, 1 row affected (0.00 sec) mysql> mysql> INSERT INTO t (age,siblings) VALUES(14,3); Query OK, 1 row affected (0.00 sec) mysql> mysql> drop table t; Query OK, 0 rows affected (0.00 sec)