1 --查询外键约束名 2 --SELECT name 3 -- FROM sys.foreign_key_columns f 4 -- JOIN sys.objects o 5 -- ON f.constraint_object_id = o.object_id 6 -- WHERE f.parent_object_id = OBJECT_ID('表名');
posted on 2018-12-04 22:17 cltt 阅读(133) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2025 cltt Powered by .NET 9.0 on Kubernetes