查询列数

Posted on 2007-01-16 12:29  DJH  阅读(163)  评论(0)    收藏  举报
select count(name) from syscolumns where id=(select id from sysobjects where xtype='u' and name='表名')

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3