select * from (
               select * from 个人用户的表
               union all
               select * from 企业用户的表 ) aa
order by aa.时间字段

解决方案 »

  1.   

    select * from 个人用户的表 
    union all
    select * from 企业用户的表 
    order by 时间
      

  2.   

    select * from table1
    union 
    select * from table2
      

  3.   

    select * from 
    (select * from 个人用户的表
    union all select * from 企业用户的表)a
    order by 时间
      

  4.   

    如果不要重復記錄 ﹐上面應該用 union ,而不是union all
      

  5.   

    select * from 个人用户的表 
    union all
    select * from 企业用户的表 
    group by *//你的字段
    order by 时间
      

  6.   

    select * from (
                   select * from 个人用户的表
                   union all
                   select * from 企业用户的表 )as a
    group by a.*
    order by a.时间字段
      

  7.   

    回复人: lsxaa(小李铅笔刀) ( ) 信誉:100  2004-10-19 14:54:00  得分: 0  
     
     
       楼上的,有一部分是抄我的   呵呵
      
     
    -------------------------------------------
    说明你的答案是对的了,呵呵,支持你的答案,我也抄一下select * from (
                   select * from 个人用户的表
                   union all                         '不要重复纪录改为union
                   select * from 企业用户的表 ) aa
    order by aa.时间字段
      

  8.   

    列如果是TEXT 类型可以么??
    好像有错误