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

Home -> Community -> Usenet -> c.d.o.server -> Re: Function to do This?

Re: Function to do This?

From: Vitaliy Mogilevskiy <vit100gain_at_earthlink.net>
Date: Tue, 06 Apr 1999 11:17:09 -0700
Message-ID: <370A4FA4.B41B3901@earthlink.net>

DelphiDev wrote:

>
> Some examples of calls:
> LookUp('JOBS','VP','JOBDESC'); --Returns "Vice President"
> LookUp('CITIES','CA'+'SF','ZIPCODE') --Returns ZipCode for S.F. CA
> (Note, CITIES primary key is "STATECODE+CITYCODE");

Oracle allows you to overload functions and procedures in packages, you can use that to develop set of functions which share same name but take different parameters and Oracle will figure out which function to use based on the parameters you pass to the <PACKAGE>.<FUNCTION_NAME>

--

+--------------------------------------------------------------------------+

| Vitaliy Mogilevskiy
| Senior Consultant
| CORE Technology Group, Inc.
| E-mail:    vit100gain_at_earthlink.net
| Web Page:  http://home.earthlink.net/~vit100gain/index.html

|            *** Free DBA Script Library at my Web Page ***
+--------------------------------------------------------------------------+




Received on Tue Apr 06 1999 - 13:17:09 CDT

Original text of this message

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