Create a table with a nonunique index on the date-valued column Inauguration
mysql>
mysql> CREATE TABLE HeadOfState
-> (
-> ID INT NOT NULL,
-> LastName CHAR(30) NOT NULL,
-> FirstName CHAR(30) NOT NULL,
-> CountryCode CHAR(3) NOT NULL,
-> Inauguration DATE NOT NULL,
-> INDEX (Inauguration)
-> );
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> drop table HeadOfState;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category