Oct 27, 2004 #1 2314 Programmer May 19, 2001 69 IN how do i loop through a cursor using fetch statement
Oct 27, 2004 #2 lewisp Programmer Aug 5, 2001 1,238 GB Code: OPEN my_cursor(params?); LOOP FETCH my_cursor INTO my_vars; -- EXIT WHEN my_cursor%NOTFOUND; END LOOP; or, better is without FETCH: Code: FOR c IN my_cursor(params?) LOOP do_something; END LOOP; Upvote 0 Downvote
Code: OPEN my_cursor(params?); LOOP FETCH my_cursor INTO my_vars; -- EXIT WHEN my_cursor%NOTFOUND; END LOOP; or, better is without FETCH: Code: FOR c IN my_cursor(params?) LOOP do_something; END LOOP;