select count(a.*) from a,b where A.A2=B.B2

解决方案 »

  1.   

    select A1,count(a.*) from A,B where A.A2=B.B2 GROUP BY A1
      

  2.   

    select a.a1,aa.a1 from test1,(
    select a2,count(a1) a1 from a2
    group by a2 ) aa
    where aa.a2 = a1.a2
      

  3.   

    select A.A1,count(A.*) F_COUNT from TAB1 A,TAB2 B where A.A2=1 and A.A2=B.B2 group by A.A1
    这样写不行啊,会报错的
    谢谢
      

  4.   

    select A.A1,count(*) F_COUNT from TAB1 A,TAB2 B where A.A2=1 and A.A2=B.B2 group by A.A1