日期:2014-05-17 浏览次数:20811 次
DECLARE CURSOR emp_cursor IS SELECT ename, sal FROM emp; BEGIN FOR emp_record IN emp_cursor LOOP dbms_output.put_line('第' || emp_cursor%ROWCOUNT || '个职员:' || emp_record.ename); END LOOP; END;