对不起!忘了加一个条件了
就是查询得到的视图要按照时间(pubdate,abc三表中都有一个pubdate字段来代表发布时间)排序谢谢!

解决方案 »

  1.   

    select id,name,type from a
    union all
    select id,name,type from b
    union all
    select id,name,type from c
      

  2.   

    select * from (
    select id,name,type,pubdate from a
    union all
    select id,name,type,pubdate from b
    union all
    select id,name,type,pubdate from c
    ) tem order by pubdate
      

  3.   

    pengdali(大力 V3.0) : "tem order by pubdate
    "是什么意思?好像执行错误。谢谢!
      

  4.   

    tem是别名,你可以乱写一个你不是sqlserver??
      

  5.   

    可以了,谢谢大力兄!能否给小弟一个email地址,以后好向你学习!
    由于以前玩的都是对象数据库,最近要做一个基于sql server2000的项目,许多技术问题要向你请教。谢谢支持!