在MySQL中哪个查询更快?

时间:2019-06-15 20:18:56

标签: mysql

查询单个索引的MySQL列字符串是否更快:

SELECT name FROM table WHERE name_city_state = 'john-doe-dallas-tx'

或将字符串分成多个索引列,例如:

SELECT name FROM table WHERE name = 'john-doe' AND city = 'dallas' AND state = 'tx'

0 个答案:

没有答案