茶馆

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
搜索了半天总算搞到了
其实好像很简单的样子

select name
from syscolumns a
where exists (
select *
from sysindexkeys b
where b.id=object_id(N'表名') and a.id=b.id and a.colid=b.colid)
posted on 2006-05-10 19:51  laue  阅读(247)  评论(0)    收藏  举报