BEGIN
DBMS_OUTPUT.put_line ('abc');
DBMS_OUTPUT.put_line (DATE '2016-10-31');
DBMS_OUTPUT.put_line (TO_CHAR (SYSDATE, 'YYYY-MM-DD HH24:MI:SS'));
DBMS_OUTPUT.put_line (123456.789);
END;
abc
31-OCT-16
2016-11-01 09:17:53
123456.789
BEGIN
DBMS_OUTPUT.put_line (TRUE);
END;
ORA-06550: line 2, column 4: PLS-00306: wrong number or types of arguments in call to 'PUT_LINE' ORA-06550: line 2, column 4: PL/SQL: Statement ignoredMore Details: https://docs.oracle.com/error-help/db/ora-06550
DECLARE
my_boolean BOOLEAN := FALSE;
BEGIN
IF my_boolean
THEN
DBMS_OUTPUT.PUT_LINE ('TRUE');
ELSIF NOT my_boolean
THEN
DBMS_OUTPUT.PUT_LINE ('FALSE');
ELSE
DBMS_OUTPUT.PUT_LINE ('NULL');
END IF;
END;
FALSE