摘要:
1、分页查询 2.查询员工表中薪水大于本部门平均薪水的员工 注意:在SQL语句前加 explain plan for 再执行命令 select * from table(dbms_xplan.display) 查看两种方法的资源占用大小。最后对比发现,相关子查询更好 3、统计每个年份入职员工人数的和 阅读全文
摘要:
set serveroutput on;--引用型变量declare 2 pname emp.ename%type; 3 psal emp.sal%type; 4 begin 5 select ename,sal into pname,psal from emp 6 where empno=7844 阅读全文