Alter table to add index
mysql> mysql> CREATE TABLE mytable ( -> titleID INT NOT NULL AUTO_INCREMENT, -> publID INT, -> PRIMARY KEY (titleID) -> ); Query OK, 0 rows affected (0.00 sec) mysql> mysql> mysql> ALTER TABLE mytable ADD INDEX idxtitle (publID); Query OK, 0 rows affected (0.01 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> mysql> drop table mytable; Query OK, 0 rows affected (0.00 sec) mysql> mysql>