Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Stack conditions in CASE statement in PL/SQL

CASE
  WHEN v_n = 1 OR v_n = 2 THEN
    dbms_output.put_line('Case 1 or 2');
  WHEN v_n = 3 THEN
    dbms_output.put_line('Case 3'); 
END CASE;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Stack #conditions #CASE #statement
ADD COMMENT
Topic
Name
2+1 =