The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Susanto.
Asked: January 16, 2018 - 7:35 am UTC
Last updated: January 16, 2018 - 10:20 am UTC
Version: 11g
Viewed 1000+ times
create or replace package pkg as package pkg_nested as var integer; end; end; / sho err LINE/COL ERROR -------- ----------------------------------------------------------------- 2/22 PLS-00103: Encountered the symbol "AS" when expecting one of the following: := . ( @ % ; not null range default character 5/1 PLS-00103: Encountered the symbol "END" create or replace package pkg as var int; end; / sho err No errors. create or replace package body pkg as package pkg_nested as var integer; end; end; / sho err LINE/COL ERROR -------- ----------------------------------------------------------------- 2/22 PLS-00103: Encountered the symbol "AS" when expecting one of the following: := . ( @ % ; not null range default character 5/1 PLS-00103: Encountered the symbol "END"
create or replace procedure p as procedure p_nest as procedure p_nest2 as procedure p_nest3 as begin dbms_output.put_line('Nested'); end p_nest3; begin p_nest3(); end p_nest2; begin p_nest2(); end p_nest; begin p_nest(); end p; / exec p(); Nested
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library