Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to print boolean variable?

Achyut KAug 25 2011 — edited Aug 26 2011
Hi gurus,

How to print boolean variable in a pl/sql block?
SQL> ed
Wrote file afiedt.buf

  1  DECLARE
  2  l_test BOOLEAN:=TRUE;
  3  i boolean;
  4  BEGIN
  5  dbms_output.put_line(l_test);
  6* END;
SQL> /
dbms_output.put_line(l_test);
*
ERROR at line 5:
ORA-06550: line 5, column 1:
PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
ORA-06550: line 5, column 1:
PL/SQL: Statement ignored
Regards,
achyut
This post has been answered by Kim Berg Hansen on Aug 25 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2011
Added on Aug 25 2011
11 comments
32,301 views