Add index to int type column
mysql>
mysql> CREATE TABLE seminar(
-> att_id INT UNSIGNED NOT NULL,
-> sem_title ENUM('Database Design','Query Optimization','SQL Standards','Using Replication'),
-> INDEX (att_id)
-> );
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> drop table seminar;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category