PL/SQL: IF ... THEN ... GOTO in one line of code

0
=
0
+
0
No specific Bitcoin Bounty has been announced by author. Still, anyone could send Bitcoin Tips to those who provide a good answer.
0

Can I write IF ... THEN ... GOTO statements in one single line of code in Oracle PL/SQL?

Tags: ,

1 Answer

1
=
0
=
$0
Internet users could send Bitcoin Tips to you if they like your answer!

Sure you can, here is the syntax example:

    if cursor_record.error_code is not null then goto validation_error; end if;
    ....
    ....


    <<validation_error>>
    -- do something
SEND BITCOIN TIPS
1

Too many commands? Learning new syntax?

FavScripts.com is a free tool to save your favorite scripts and commands, then quickly find and copy-paste your commands with just few clicks.

Boost your productivity with FavScripts.com!

Post Answer