Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Confusion with for loop
Hi there.
I tried to use an FOR LOOP in an anonymous block (in the SQL Window in TOAD to be more specific).
I tried this:
DECLARE
CURSOR username_cur IS SELECT Username FROM omsmaeg.eins; BEGIN FOR Username_rec IN Username_cur LOOP UPDATE USER_DEF SET Dvol = 'BI-DFS01\DFS' WHERE Username = Username_rec.Username END LOOP; COMMIT;
What am I doing wrong here?
-- mfg Marc EggenbergerReceived on Thu Oct 09 2003 - 03:35:26 CDT