Does dropping a table in MySQL also drop the indexes?

后端 未结 3 925
失恋的感觉
失恋的感觉 2020-12-09 01:28

It\'s not explicitly mentioned in the documentation (http://dev.mysql.com/doc/refman/6.0/en/drop-table.html). I ask because I just saw a curious database migration in a Rai

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 02:09

    Yes it would drop the index. There's no reason to keep the index if the underlying table isn't there. I suspect that the downward migration is just doing the opposite of the upward migration on a one-to-one basis.

提交回复
热议问题