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的工资
相关文章
相关标签/搜索