Index | Home | Forums
Oracle PL/SQL Example 2-20 Initialization of Variables and Constants

Example 2-20 Initialization of Variables and Constants

DECLARE
   counter INTEGER;
BEGIN
-- COUNTER is initially NULL, so 'COUNTER + 1' is also null.
   counter := counter + 1;
   IF counter IS NULL THEN
      DBMS_OUTPUT.PUT_LINE('COUNTER is NULL not 1.');
   END IF;
END;
/


This page was generated on/at Feb 23,2008 00:20:12
General comments and questions regarding this document should be sent by email to info@oracleabc.com or post your comments here




Index | Home | Forums
Oracle PL/SQL Example 2-20 Initialization of Variables and Constants

Example 2-20 Initialization of Variables and Constants

DECLARE
   counter INTEGER;
BEGIN
-- COUNTER is initially NULL, so 'COUNTER + 1' is also null.
   counter := counter + 1;
   IF counter IS NULL THEN
      DBMS_OUTPUT.PUT_LINE('COUNTER is NULL not 1.');
   END IF;
END;
/


This page was created by oracleabc.com on Feb 23,2008 00:09:02
General comments and questions regarding this document should be sent by email to info@oracleabc.com or post your comments here