Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Conditional Exit

PatzaNov 6 2007 — edited Nov 6 2007
Hi,

I have a script file containing the following scripts e.g.:

prompt ----------------------------------------------------------------------------
prompt -- Part 1
prompt ----------------------------------------------------------------------------
connect schema1
execute package1.procedure1();
execute package1.procedure2();

prompt ----------------------------------------------------------------------------
prompt -- Part 2
prompt ----------------------------------------------------------------------------

connect schema2
execute package2.procedure1();
execute package2.procedure2();

Now, I want to check for some condition and if the condition is true then only I start the part 1 of the script else I want to abondon the whole script (including part 2). Can someone plz help me on how to achive this.

Thanks.
-Pat
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2007
Added on Nov 6 2007
2 comments
259 views