就像是
Select f.name, object_name(f.parent_object_id)From sys.foreign_keys f inner join sys.indexes i on f.referenced_object_id = i.object_id andf.key_index_id = i.index_idWhere i.name = 'idx_duplicate' and i.object_id = object_id('[dbo].[MyTable]')
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)