Skip to content

Instantly share code, notes, and snippets.

@shaik2many
Last active December 22, 2015 06:19
Show Gist options
  • Save shaik2many/6430642 to your computer and use it in GitHub Desktop.
Save shaik2many/6430642 to your computer and use it in GitHub Desktop.
--http://www.oracle.com/technetwork/issue-archive/2013/13-mar/o23plsql-1906474.html
DECLARE
l_total INTEGER := 10000;
CURSOR employee_cur
IS
SELECT employee_id
FROM plch_employees
ORDER BY salary ASC;
employee_rec employee_cur%ROWTYPE;
BEGIN
FOR employee_rec IN employee_cur
LOOP
folderid_map(template_cur_rec.folder_id):=template_cur_rec.new_folder_id;
END LOOP;
END;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment