search

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:

迷茫迷茫2808 days ago956

reply all(2)I'll reply

  • 淡淡烟草味

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

    You should be the ordinary index you created. Show the creation statement of the spm_works table: show create table spm_works; See if the id_2 index line is created.

    reply
    0
  • 巴扎黑

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

    id_2 This is the name of the index built on the id field. Obviously this is a normal index and is not unique.

    reply
    0
  • Cancelreply