SELECT 'ALTER TABLE '+ OBJECT_NAME(parent_object_id)+ ’ DROP CONSTRAINT ’ +Name FROM sys.foreign_keys WHERE referenced_object_id=OBJECT_ID(‘dbo.学生’) 来源:CSDN作者:qq_39609936链接:https://blog.csdn.net/qq_39609936/article/details/104648750 标签 qq