得到数据库中某表的主键 - laue
laue
·
2006-05-10
·
via 博客园 - laue
搜索了半天总算搞到了其实好像很简单的样子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)
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。