SQL计算表的列数

select   count(syscolumns.name) 
  from   syscolumns   ,   sysobjects    
  where   syscolumns.id   =   sysobjects.id  
  and   sysobjects.name   =   'qb_orders'
原文地址:https://www.cnblogs.com/yzenet/p/3685188.html