MySQL: How do I find out which tables reference a specific table?

前端 未结 7 1979
挽巷
挽巷 2021-01-31 08:21

I want to drop a table but it is referenced by one or more other tables. How can I find out which tables are referencing this table without having to look at each of the tables

7条回答
  •  -上瘾入骨i
    2021-01-31 08:44

    you could try MySql workbench which allows you to extract E.R. diagram. In this you can find all you need about tables of your database.

提交回复
热议问题