标签:style io color sp for strong on 数据 bs
SELECT CONCAT(‘alter table ‘, TABLE_NAME , ‘ drop foreign key ‘, constraint_name, ‘;‘)
FROM information_schema.KEY_COLUMN_USAGE a WHERE a.TABLE_SCHEMA=‘某一个数据库的名称‘ AND a.constraint_name LIKE ‘FK_Reference_%‘ AND REFERENCED_TABLE_NAME=‘某一张表的名字‘
标签:style io color sp for strong on 数据 bs
原文地址:http://www.cnblogs.com/qiyebao/p/4164772.html