I'm quite new at PL SQL, when I tried to write sth like below:
BEGIN FOR foo IN (SELECT A, B, C FROM foo_table WHERE some_conditions) LOOP
DBMS_OUTPUT.PUT_LINE('sth here')
END LOOP;
I got following error while executing statment in SQL Developer
Encountered the symbol "end-of-file" when expecting is one the following: begin case declare end exception and more...
What's wrong with my statement? Could anyone give me a tip how to resolve this? I'll be very glad for all hints.