获取表的所有列名select name from syscolumns where id=object_id('表名')
获取表的所有列名select column_name 
获取表的所有列名
from information_schema.columns where table_name = 'news'

相关文章: