获取表中的某个字段名

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


1为要查找的哪列

从1开始

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