SQL 获取外键信息,索引信息

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

posted on 2014-03-25 21:30  Forgiving  阅读(152)  评论(0编辑  收藏  举报