摘要: select COL_NAME(object_id('表名'),c.colid)from sysobjects a,sysindexes b,sysindexkeys cwhere a.name=b.name and b.id=c.id and b.indid=c.indidand a.xtype='PK' and a.parent_obj=object_id('表名')and c.id=object_id('表名') 阅读全文
posted @ 2013-10-05 14:27 逍遥子k 阅读(1364) 评论(0) 推荐(0) 编辑