以下plsql程序用的scott用户的dept,emp表. 案例1 --查询80,81,82,87年员工入职人数 set serveroutput on declare cursor cemp is select to_char(hiredate,'yyyy') from emp; count80 ; count81 ; count82 ; count87 ; phiredate ) := ''; begin open cemp; loop fetch cemp into phiredate ;…