标签: 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'