Oracle嵌套子查詢及exists使用

1.子查詢 子查詢:在一個查詢的內部還包括另一個查詢,則此查詢爲子查詢 Sql的任何位置都可以加入子查詢 範例:查詢比7654工資高的員工   拓展:根據員工編號升序排列 select * from emp t where t.sal > (select e.sal from emp e where e.empno = 7654) order by t.empno 範例:查詢出比僱員7654的工資
相關文章
相關標籤/搜索