IN operator in PL SQL : IN « PL SQL « Oracle PL / SQL






IN operator in PL SQL

   
SQL>
SQL> set serveroutput on
SQL>
SQL>
SQL> DECLARE
  2     lv_test_bln BOOLEAN;
  3  BEGIN
  4     lv_test_bln := UPPER('AAA') IN ('TRE','B','N');
  5     IF lv_test_bln THEN
  6        DBMS_OUTPUT.PUT_LINE('Result: TRUE');
  7     ELSE
  8        DBMS_OUTPUT.PUT_LINE('Result: FALSE');
  9     END IF;
 10  END;
 11  /
Result: FALSE

PL/SQL procedure successfully completed.

   
    
  








Related examples in the same category

1.Use IN operator in procedure
2.IN operator checks whether a variable value is in a set of comma-delimited values.
3.IN/NOT IN example(table collection)
4.NOT IN example (table collection)