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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: reading variables

Re: reading variables

From: <Rajesh.Rao_at_chase.com>
Date: Wed, 09 Jan 2002 15:26:45 -0800
Message-ID: <F001.003EBA29.20020109151558@fatcity.com>

Do a SHOW DEF at the SQL prompt. What does it show? If anything other than &, do a

SQL> Set def &

Raj

"Lance Prais" <lprais_at_ts.checkpoint.com>@fatcity.com on 01/09/2002 05:35:21 PM

Please respond to ORACLE-L_at_fatcity.com

Sent by: root_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:

If I use the following for to reference a variable in my code: Update Primus_Temp_Dump set owner =(&test) where secure_id = Secure;

I get this compile error:
PLS-00103: Encountered the symbol "&" when expecting one of the following:

This is how you are supposed to reference variables in a SQL Statement?

If I do this:
Update Primus_Temp_Dump set owner =('&test') where secure_id = Secure;

I do not get the error but it passes &test into my query and it fails

Please help

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Lance Prais
  INET: lprais_at_ts.checkpoint.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Rajesh.Rao_at_chase.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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 Wed Jan 09 2002 - 17:26:45 CST

Original text of this message

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