DECLARE
counter INTEGER ; -- initial value is NULL by default
BEGIN
counter := counter + 1; -- NULL + 1 is still NULL
IF counter IS NULL THEN
DBMS_OUTPUT.PUT_LINE('counter is NULL.');
ELSE DBMS_OUTPUT.PUT_LINE(counter);
END IF;
END;
/
No. | Subject | Author | Date | Views |
---|---|---|---|---|
5 | OUTER.DECLARE | admin | 2024.02.03 | 69 |
4 | %TYPE | admin | 2024.02.02 | 66 |
» | IF ... ELSE | admin | 2024.02.02 | 68 |
2 | EXCEPTION BLOCK | admin | 2024.02.02 | 64 |
1 | OUTPUT SHOWING | admin | 2024.02.02 | 66 |