比如:
A 表字段 ID  name timeB 表字段 ID  name time
我查询出来  A表和B表的 数据 进行时间的排序  关键是像把A 表 B 的时间 当做一个表查询出来进行排序!
查询出来的字段  ID name time     我需要这三个值.谢谢!

解决方案 »

  1.   

     比如 
    A 表 字段
    id  name time
    1   张三  2011-08-02
    2   李四  2011-08-03B 表 字段
    id  name time
    1   李五  2010-02-02
    2   李六  2010-01-01---------------------------------
    我需要的结果显示效果:
    id  name time
    1   张三  2011-08-02
    2   李四  2011-08-03
    4   李五  2010-02-02
    5   李六  2010-01-01
      

  2.   

    用 union all 连起来select * from a
    union all
    select * from b
    order by time