Re: Using DECODE in stored function
Date: 1996/01/22
Message-ID: <4due0u$buo_at_nntp.interaccess.com>#1/1
>Can anyone tell me why Oracle does not allow us to use the DECODE function
>inside a stored function?
>I get the message: "ORA-1403: No data found" when I try to invoke the function.
>However, I do not get any compile errors when the function is created. Thanks
>in advance.
I've also encountered this problem. Usually when I try to do something like this in a stored object:
cursor c1 is
select
tab1.col1 ,tab2.,col2 from tab1 ,tab2 where tab1.col1 = decode(tab1.col1 ,0,tab2.col1 , tab2.col2);
If anyone knows more about it, I'd love to know the scoop.
Mike
>--
>============================================================================
>Terry Walker Internet: terryw_at_kgf.com
>Kraft Foods twalker_at_kraft.com
>250 North Street N1-3
>White Plains, NY 10625
>(914) 335-4385 Fax - 2015 "I'm not paranoid, everyone IS out to get me!"
>============================================================================
Received on Mon Jan 22 1996 - 00:00:00 CET