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

前端 未结 10 1281
孤独总比滥情好
孤独总比滥情好 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:15

    to just look at a tables layout from the cli. you would do

    desc mytable

    or

    show table mytable

提交回复
热议问题