select b,c,count(0) from table1 group by b,c

解决方案 »

  1.   

    select b,c, count(*)  as [count] from 表 group by b,c
      

  2.   

    假设表名为testSQL语句如下
    select B,C,(Select count(B) as COUNT from test as t2 where t1.B=t2.B and t1.C=t2.C) as [COUNT] from test as t1 group by B,C
      

  3.   

    select b,c, count(*)  from 表 where ... group by b,c
      

  4.   

    select b,c, count(*)  as count from 表 group by b,c