Created
March 26, 2021 22:17
-
-
Save KrashLeviathan/6edd8f87bd376e99ce7c3ef864991571 to your computer and use it in GitHub Desktop.
EXAMPLE: Scripting package DDL changes to run in SQL Developer console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE | |
l_example_pkg_spec VARCHAR2(32767) := q'~ | |
create or replace package EXAMPLE_PKG AS | |
-- spec definition here | |
end; | |
~'; | |
l_example_pkg_body VARCHAR2(32767) := q'~ | |
create or replace package body EXAMPLE_PKG AS | |
-- body definition here... | |
end; | |
~'; | |
BEGIN | |
EXECUTE IMMEDIATE l_example_pkg_spec; | |
EXECUTE IMMEDIATE l_example_pkg_body; | |
-- ... | |
END; | |
/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment