select a as c from t1 union select b from t2

解决方案 »

  1.   


    select A c from t1
    select B c from t2
    order by c
      

  2.   

    select * from (
    select a from t1
    union all
    select b from t2) tem order by a
      

  3.   

    写错了
    应该是:
    select A c from t1 union
    select B c from t2
    order by c
      

  4.   

    Select tem.A from (Select A From t1 Union All Select B From t2)tem  Order by tme.A
      

  5.   

    select c from ( select a as c from t1 union all select b from t2) aa order by c