A searched CASE statement

Submitted by:Andery Smith

Date added:27 May, 2014

Category:PL SQL

PL/SQL Code for a searched CASE statement

Tags: search , case statement

Code Snippet:

BEGIN
CASE TRUE
WHEN (1 > 3) THEN
dbms_output.put_line('One is greater than three.');
WHEN (3 < 5) THEN
dbms_output.put_line('Three is less than five.');
WHEN (1 = 2) THEN
dbms_output.put_line('One equals two.');
ELSE
dbms_output.put_line('Nothing worked.');
END CASE;
END;
 
 

Comments