一种情况 1、禁用约束 alter table ××× nocheck constraint all 2、删除数据 delete from ××× 3、恢复约束 alter table ××× check constraint all 二种情况 先删除外键的数据,在删除主键的数据。