I should be able to execute this type of code from a SQL window:
Instead, I'm getting an error message.
When I tried cutting and pasting it into the Command Window, still erroring out.
When I saved it into a file, and tried calling the file from the Command Window, didn't work either.
Can you please fix this?
Thank you in advance.
Ivan C.
Code:
<<outer>>
DECLARE
v CHAR := 'A';
BEGIN
DECLARE
v CHAR := 'B';
BEGIN
dbms_output.put_line (outer.v);
END;
END;
When I tried cutting and pasting it into the Command Window, still erroring out.
When I saved it into a file, and tried calling the file from the Command Window, didn't work either.
Can you please fix this?
Thank you in advance.
Ivan C.