Home  >  Q&A  >  body text

phpmyadmin - mysql searches the index and finds the key_name of id_2. What index is this? ?

mysql searches the index and finds the key_name of id_2. What index is this? ?
SHOW INDEX FROM spm_works, the result is as shown below:

迷茫迷茫2601 days ago777

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-18 10:54:17

    你应该是你创建的普通索引吧. 给看看 spm_works表的创建语句 : show create table spm_works; 看看有没有创建id_2索引 这行.

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-18 10:54:17

    id_2这是建立在id字段的索引名称吧,很明显这是普通索引且不唯一。

    reply
    0
  • Cancelreply