无所谓,只要能统计两张表的记录总数就行了,我改了如下:
select count(*) aaaa,a.*, b.* from dddd a, tttt b
但还是不对,请指教。

解决方案 »

  1.   

    select (select count(*) from sysUsers) + (select count(*) from folder_define)
      

  2.   

    select (count1+count2) from (select count(*) as count1 from tab_a) a ,(select count(*) as count2 from tab_b) b
      

  3.   

    你用啥子数据库系统啊,是用ODBC桥吗?你的Connection, Statement, ResultSet是怎么操作的?粘贴代码让我开开眼。
      

  4.   

    Select count(* ) from (select id from a union select id from b)
      

  5.   

    谢1981,但我知道有个缺陷,
    两个表的ID要是PK
    TYPE要一直
      

  6.   

    谢1981,但我知道有个缺陷,
    两个表的ID要是PK
    TYPE要一致