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