I was reviewing a colleague's code and found something similar below:
begin
for i in (select 'x' from dual) loop
null;
end loop Y;
end;
I can't understand why this compiles and runs. Shouldn't it fail because of the "Y" variable? I tried other variables as well but it compiles.
please advise.
Thank you.