获取表的所有列名
select?name?from?syscolumns?where?id=object_id('表名') 下面這樣也可以:
select?column_name?
from?information_schema.columns?where?table_name?=?'news'
select?column_name?
from?information_schema.columns?where?table_name?=?'news'
轉載于:https://www.cnblogs.com/zhuboxingzbx/archive/2007/09/03/880049.html
總結
- 上一篇: 复旦大学长跑协会财务制度(初稿)
- 下一篇: 异步调用 (转载)