获取表中的某个字段名

select top 1 col_name(object_id('表名'),1) from sysobjects


1为要查找的哪列

从1开始

posted @ 2011-04-28 14:53  xfyn  阅读(202)  评论(0)    收藏  举报