Which Code Runs Slower
Test Your PL/SQL Knowledge This puzzler has come from Steven Feuerstein for the month of February 2008. So I thought to reproduce the puzzler with its answer: The employees table in the production Oracle Database 10g Release 2 instance of the MassiveGlobalCorp company contains 2.5 million rows. Below are three different blocks of code, each of which fetch all rows from this table and then "do stuff" with each fetched record. Which will run much slower than the other two, and why? a . DECLARE CURSOR employees_cur IS SELECT * FROM employees; BEGIN FOR employee_rec IN employees_cur LOOP do_stuff ( employee_rec ); END LOOP ; END; b . DECLARE CURSOR employees_cur IS SELECT * FROM employees; l_employee employees%ROWTYPE ; BEGIN OPEN employees_cur ; LOOP FETCH employees_cur...