茶馆

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  34 随笔 :: 0 文章 :: 49 评论 :: 0 引用
搜索了半天总算搞到了
其实好像很简单的样子

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 阅读(81) 评论(0) 编辑 收藏