SQL 获取外键信息,索引信息
--获取某表的所有索引,包括索引归属列名
sp_statistics 'corpinfo'
--获取索引与索引归属列以及描述信息
sp_helpindex 'corpinfo'
--获取某表的约束信息以及归属列
sp_helpconstraint 'corpinfo'
--获取某表的所有索引,包括索引归属列名
sp_statistics 'corpinfo'
--获取索引与索引归属列以及描述信息
sp_helpindex 'corpinfo'
--获取某表的约束信息以及归属列
sp_helpconstraint 'corpinfo'