sqlserver如何查询一个表的主键都是哪些表的外键
select object_name(a.parent_object_id) 'tables' from sys.foreign_keys a where a.referenced_object_id=object_id('[表名]')select object_name(a.parent_object_id) 'tables' from sys.foreign_keys a where a.referenced_object_id=object_id('[表名]')