博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

如何通过SQL语句查询出表中的列数

Posted on 2009-04-15 10:54  緗灵  阅读(853)  评论(0)    收藏  举报
select count(name) from syscolumns where id=(select id from sysobjects where xtype='u' and name='表名')