在sql server数据库的一个表中如何查询共有多少字段

select a.* from sys.columns a,sys.tables b
where a.object_id = b.object_id and b.name = '要查的表名'

posted @ 2017-05-24 15:36  有梦就能实现  阅读(2151)  评论(0编辑  收藏  举报