码迷,mamicode.com
首页 > 数据库 > 详细

ORACLE union order by

时间:2014-06-22 00:50:15      阅读:327      评论:0      收藏:0      [点我收藏+]

标签:oracle   union   order by   

select * from (
select a.id,a.oacode,a.custid,a.custname,a.xsz,a.salename,a.communicationtheme,a.communicationproperty,a.communicationtime,a.productmanager,a.creator,a.createdate from technology_flow a 
where a.oastate='正常结束'
union 
select b.id,b.oacode,b.custid,b.custname,b.xsz,b.salename,b.communicationtheme,b.communicationproperty,b.communicationtime,b.productmanager,b.creator,b.createdate  from technology_support b
) t order by t.oacode desc

ORACLE union order by,布布扣,bubuko.com

ORACLE union order by

标签:oracle   union   order by   

原文地址:http://blog.csdn.net/jrainbow/article/details/32102339

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!