Using KEY modifier
mysql>
mysql> CREATE TABLE mytable (
-> titleID INT NOT NULL AUTO_INCREMENT,
-> publID INT,
-> catID INT,
-> PRIMARY KEY (titleID),
-> KEY publIdIndex (publID),
-> KEY catID (catID)
-> );
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql>
mysql> drop table mytable;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category