SQL>
SQL> SET SERVEROUTPUT ON
SQL>
SQL> DECLARE
2 v_true BOOLEAN := TRUE;
3 v_false BOOLEAN := FALSE;
4 v_null BOOLEAN := NULL;
5 BEGIN
6 IF v_true
7 THEN
8 DBMS_OUTPUT.PUT_LINE('true');
9 END IF;
10
11 IF v_false
12 THEN
13 DBMS_OUTPUT.PUT_LINE('false');
14 END IF;
15
16 IF v_null
17 THEN
18 DBMS_OUTPUT.PUT_LINE('null');
19 END IF;
20 END;
21 /
true
PL/SQL procedure successfully completed.
SQL>
|