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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Pass different # of parameters to a procedure?

Re: Pass different # of parameters to a procedure?

From: Conan <conan_at_(no-spam)as-if.com>
Date: Fri, 13 Oct 2000 09:08:26 +0100
Message-ID: <ZpzF5.7687$Bw1.4262@news.indigo.ie>

Hi steve,

    what you could is pass the parameters by name i.e. execute rocedure( param1 => val1 etc) and then have default values defined for each parameter. The only change you would have to make would be to the update statement. suppose the defult value for each parameter was 'nochange'. Your update statement could then read sumething like this

update table
set col1= decode(param1,'nochange',col1,param1), col2 = decode(param2,'nochange',col2,param2) etc

HTH Conan Received on Fri Oct 13 2000 - 03:08:26 CDT

Original text of this message

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