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!

can i store the output of boolean values into a table?

skudFeb 9 2011 — edited Feb 9 2011
the output of the below coding is '1' and '0'...
i want to store that '1' and '0' in a table...

but i cant do that pls help me....

how to store it?....

DECLARE
EID VARCHAR2 (20);
BL BOOLEAN := TRUE;
BEGIN
SELECT EMP_NO
INTO EID
FROM LEAVE_FORM
WHERE EMP_NO =1;
BL := TRUE;
DBMS_OUTPUT.PUT_LINE(sys.DIUTIL.bool_to_int (BL));
insert into t1 values(BL);-----------------------------------------------------error
EXCEPTION
when no_data_found then
BL := FALSE;
DBMS_OUTPUT.PUT_LINE(sys.DIUTIL.bool_to_int (BL));
END;

Edited by: 794244 on Feb 9, 2011 3:11 AM
This post has been answered by Solomon Yakobson on Feb 9 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2011
Added on Feb 9 2011
10 comments
1,172 views