Reduce the number of significant characters per index in the index to the first 16 characters
mysql>
mysql> CREATE TABLE mytable (
-> titleID INT NOT NULL AUTO_INCREMENT,
-> title varchar(100),
-> PRIMARY KEY (titleID)
->
-> );
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql>
mysql>
mysql> ALTER TABLE mytable ADD INDEX idxtitle (title(16));
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>
Related examples in the same category