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

Home -> Community -> Mailing Lists -> Oracle-L -> Stupid Bind Variable question

Stupid Bind Variable question

From: Alan Davey <adavey_at_competitrack.com>
Date: Fri, 20 Sep 2002 07:28:31 -0800
Message-ID: <F001.004D4FEE.20020920072831@fatcity.com>


In any given SQL statement, do I need (or should I :^) ) create a bind variable for every literal value even if it is one of the following cases:

  1. substring in a substr function
  2. date/time format mask used in to_char or to_date function
  3. comparison value in a decode/case statement (not in the where clause)

I've seen it mentioned to use bind variables when comparing a column to a literal in the where clause, but nothing specific about the above scenarios. Basically what I am asking is, do all literals need to be made bind variables?

Thanks.
--

Alan Davey
adavey_at_competitrack.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Alan Davey
  INET: adavey_at_competitrack.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Sep 20 2002 - 10:28:31 CDT

Original text of this message

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