Hi
So if I have a table with a structure as below:
and I run a queryCode:CREATE TABLE `employee` ( `id` INT(10) NOT NULL AUTO_INCREMENT, `full_name` INT(64) NOT NULL, `email` VARCHAR(255) NOT NULL, `mobile` VARCHAR(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`), UNIQUE KEY `mobile` (`mobile`) ) ENGINE=MYISAM DEFAULT CHARSET=latin1
Code:SELECT * FROM employee WHERE email='abc@example.com'
Will the index work in this case? (notice the unique index assigned)
Thanks for any inputs.



Reply With Quote
Bookmarks