Re: Boolean variable
From: codadilupo <codadilupo_at_operamail.com>
Date: Tue, 29 Jan 2008 17:25:02 +0100
Message-ID: <479f535e$0$16031$5fc30a8@news.tiscali.it>
Date: Tue, 29 Jan 2008 17:25:02 +0100
Message-ID: <479f535e$0$16031$5fc30a8@news.tiscali.it>
hemant.bs11_at_gmail.com wrote:
> I have a procedure that returns a boolean value,
^^^^^^^^^
It should be a *function*, not a procedure.
> How can i print this
> value or is there any way from which i can fetch the value returned
> from the procedure to a variable of a varchar2 datatype
declare
x varchar2(80);
begin
x := (case your_boolean_function when true then 'true' when false then
'false' else 'unknown' end) ;
dbms_output.put_line(x);
end ;
/
C. Received on Tue Jan 29 2008 - 10:25:02 CST