How do I check if an index exists on a table field in MySQL?

前端 未结 10 1282
孤独总比滥情好
孤独总比滥情好 2020-12-12 16:55

I\'ve needed to Google this a couple times, so I\'m sharing my Q/A.

10条回答
  •  长情又很酷
    2020-12-12 17:37

    Use SHOW INDEX like so:

    SHOW INDEX FROM [tablename]
    

    Docs: https://dev.mysql.com/doc/refman/5.0/en/show-index.html

提交回复
热议问题