select (select count(*) from tablea)+(select count(*) from tableb)

解决方案 »

  1.   

    是否这样 select (select count(*) from tablea) from tablea a ,tableb b where a.columna=b.columna 我只要一张表的记录数 因为select count(*) from tablea a ,tableb b where a.columna=b.columna语法要抱错
      

  2.   

    select count(*) from tablea a ,tableb b where a.columna=b.columna
    这样应该能求出总数。select count(*) from tablea a inner join tableb b on a.columna=b.columna或left join.
      

  3.   

    select count(*) from tablea where columna in (select columna from tableb)
      

  4.   

    我想统计有几条记录 
    from tablea a ,tableb b where a.columna=b.columna and where a.colomnc>=0
      

  5.   

    我想统计有几条记录 
    select * from tablea a ,tableb b where a.columna=b.columna and where a.colomnc>=0
      

  6.   

    select Count(a.*) from tablea a ,tableb b where a.columna=b.columna and where a.colomnc>=0
      

  7.   

    select count(*) as 总记录数 from tablea a full join tableb b on a.columna=b.colomnc
      

  8.   

    select (select count(*) from tablea)+(select count(*) from tableb)