Configure an ENUM column and a SET column
mysql>
mysql> CREATE TABLE Orders
-> (
-> OrderID SMALLINT UNSIGNED,
-> BikeModel VARCHAR(40),
-> BikeColor ENUM('red', 'blue', 'green', 'yellow'),
-> BikeOptions SET('rack', 'light', 'helmet', 'lock')
-> );
Query OK, 0 rows affected (0.01 sec)
mysql>
mysql>
mysql> drop table Orders;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category