Check if parameter is NULL
SQL> SQL> CREATE OR REPLACE PROCEDURE print (n INTEGER) IS 2 BEGIN-- from w w w . jav a2 s .c o m 3 IF n IS NOT NULL THEN 4 DBMS_OUTPUT.PUT_LINE(n); 5 ELSE 6 DBMS_OUTPUT.PUT_LINE('NULL'); 7 END IF; 8 END print; 9 / Procedure created. SQL>