在 SQL Server 中 你可以使用以下查询来找到引用 的 FOREIGN KEY 约束

SELECT f.name AS ForeignKeyName, OBJECT_NAME(f.parent_object_id) AS ReferencingTable, COL_NAME(fc.parent_object_id, fc.parent_column_id) AS Referencin
posted @ 2024-04-18 18:22  LuoCore  阅读(17)  评论(0编辑  收藏  举报