Select * From Table1 Where xxxxxxxxxxxx
Union All
Select * From Table2 Where xxxxxxxxxxxx

解决方案 »

  1.   

    select * from talbe1
    union
    select * from tagle2
      

  2.   

    我统计表中的一个字段:SL(数量)语句是:
    selelct sum(sl) from table1
    union
    select sum(sl) from table2
    统计出来的结果和我两个表分别统计出来的结果加起来的结果不一样啊
      

  3.   

    Select sum(sl) from (selelct sum(sl) as sl from table1
    union
    select sum(sl) as sl from table2) as T
      

  4.   

    select sum(s1) from (
    selelct sl from table1
    union
    select sl from table2 ) a
      

  5.   

    select sum(s1) from (
    selelct sl from table1
    union all
    select sl from table2 ) a
      

  6.   

    stone_lin(石),太感谢你了,我刚才试过,对了 。感谢各为兄弟!!!!!!!!