Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.oracle -> Can a function() be used to change parameter value in stored procedures ?

Can a function() be used to change parameter value in stored procedures ?

From: sui generis <sui_generis71_at_hotmail.com>
Date: 19 Mar 2004 07:46:48 -0800
Message-ID: <c8cbc560.0403190746.77fae429@posting.google.com>

I was wondering if i can use a function() to change a parameter value ..
this is what i want to.. if the input value to the stored procedure is NULL then i want to change it to some other value..

can i use something like ..

procedure test
(
 param1 in varchar2 default chk_function(); )
...
the chk_function() will check whether the input value is null or not and if null ,replaces it with a default value ? Received on Fri Mar 19 2004 - 09:46:48 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US