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

Package Constants vs Literals

From: klabu <nosuchuser_at_gmail_dot_com>
Date: Thu, 19 Oct 2006 15:38:30 -0400
Message-ID: <12jfl1nogjuif0f@corp.supernews.com>

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   Received on Thu Oct 19 2006 - 14:38:30 CDT

Original text of this message

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