Answer the question
In order to leave comments, you need to log in
How does MySQL search sorted data within a db file?
There is a table with 1 million records:
CREATE TABLE `affiliation` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(512) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name_UNIQUE` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=291323 DEFAULT CHARSET=latin1;
Answer the question
In order to leave comments, you need to log in
Well, you yourself created a unique index for this field, why be surprised?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question