阅读背景:

sql列出了主键的所有外键

来源:互联网 

Let's say the "user_id" field on "table_users" is primary key for 10 foreign keys on 10 other tables. I want to rename the field of primary key on "table_users", but it doesn't allow me to rename it because there are 10 foreign keys from 10 other tables are linked to it. May I know how to know which of the 10 tables has the foreign keys? What is the sql code to show the 10 tables which has the foreign keys?Let's say the "user_id" field on "table_users"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: