一个表
id ,title,puttime
二个表
id ,title1,puttime1
字段类型一样,
按照,puttime和puttime1的总体时间排序,
谢谢

解决方案 »

  1.   

    create view aa
    as 
    select id , title , puttime from table1
    union all
    select id , title1 title , puttime1 puttime from table2
    select * from aa order by puttime
      

  2.   

    select * from (
    select id ,title,puttime from A
    union all 
    select id ,title1,puttime1 from B
    ) tmp order by puttime 
      

  3.   

    select * from (select * from table 2 insert into table1)as tablename order by puttime
      

  4.   

    union all 包含重复行
    就是一个锲套查询的问题