select count(1) from syscolumns where id=object_id('t')t:表名

解决方案 »

  1.   

    Select Count(1) As 字段数 from  SysColumns Where ID=OBJECT_ID(N'TableName')
      

  2.   

    to: paoluo(一天到晚游泳的鱼) 老兄,都俩个星了,还在忙碌?
      

  3.   

    to 游鱼:得分超过一万的才有两颗星。
    你怎么拿到的啊?我好努力地争取,到现在才八百多。
    离一万还有N远的距离, 好像没可能拿到一万哦。
    是不是里面有什么trick?
      

  4.   

    select count(*) from syscolumns where id=object_id('table_name')