select count(*) from tb
select count(1) from tb
select count(col) from tb还有什么?让他问微软.

解决方案 »

  1.   

    你可以问他select语句的缺陷up..
      

  2.   

    我汗,不是这样的吧修正问题:
    select count(*) from tableA这个语句的缺陷
    或者说是使用count()的缺陷
      

  3.   

    如果说 count(列) ,而遇到null忽略计数的问题,这个是特性,不是缺陷,只是他自己的理解问题。
      

  4.   


    select count(.)(.)  /*result
    ---------------
    color wolf
    */
      

  5.   

    那这样.select count(*) from tb 
    select count(1) from tb 
    select count(col) from tb 
    select count(distinct col) from tb 如果你说出了这四个东西,他还问你的话,建议你换个单位吧.
      

  6.   

    select count()
    /*
    消息 174,级别 15,状态 1,第 1 行
    count 函数要求有 1 个参数。
    */