$IF $$plsql_optimize_level : PLSQL_OPTIMIZE_LEVEL « SQL PLUS Session Environment « Oracle PL/SQL Tutorial






SQL>
SQL> CREATE OR REPLACE PROCEDURE check_expressions
  2  IS
  3  BEGIN
  4  $IF $$plsql_optimize_level != 1 OR $$plsql_optimize_level = 2
  5  $THEN
  6     -- Placeholder
  7  $END
  8     NULL;
  9  END check_expressions;
 10  /

Procedure created.








29.48.PLSQL_OPTIMIZE_LEVEL
29.48.1.Check $$PLSQL_OPTIMIZE_LEVEL
29.48.2.$IF $$plsql_optimize_level
29.48.3.$IF $$plsql_optimize_level IS NULL OR $$plsql_optimize_level IS NOT NULL