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: Package Constants vs Literals

Re: Package Constants vs Literals

From: joel garry <joel-garry_at_home.com>
Date: 19 Oct 2006 17:43:18 -0700
Message-ID: <1161304998.815668.309100@i3g2000cwc.googlegroups.com>

klabu wrote:
> select *
> from sometable
> where somecol = 'SOMECODE'
> and someothercol = 'SOME_OTHER_CODE'
> and someothercol2 = some_numeric_code
>
>
>
> Is this a "good" thing (meaning NO performance impact) to do:
> If those "CODES" have a finite set of values..
> create a package and put those values in constants
> and replace those literals in the SQL with the package constants ?
>
> thanks

See
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:7832114438832 to see how to figure out if it works for your exact code. Especially note the first and Sept. 13, 2006 responses.

jg

-- 
@home.com is bogus.
http://www.drivemeinsane.com/
Received on Thu Oct 19 2006 - 19:43:18 CDT

Original text of this message

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