当前位置:首页 > 数据库 > Oracle

oracle将两个结果连接后进行查询,得到两个查询的联合结果

* from (select count(1) rightCount from (select * from (select *     from mic_td_exercise_push_problem mp     where mp.push_id = 347     order by mp.create_time desc)     where rownum <= 3) t1    where t1.is_correct = 1), (select count(1) wrongCount from (select *     from (select *         from mic_td_exercise_push_problem mp     where mp.push_id = 347 order by mp.create_time desc) where rownum <= 3) t1 where t1.is_correct = 2)

将两个查询结果进行联合查询,就得到了一条记录,两个向要的结果。

oracle将两个结果连接后进行查询,得到两个查询的联合结果

标签:

本文系统来源:http://www.cnblogs.com/brolanda/p/4523854.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐