Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: reading variables
& variables work fine in sqlplus but not anywhere else, In what tool are you programming?
lprais_at_ts.checkpoint.com wrote:
>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: orantdba INET: orantdba_at_netscape.net 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:13:20 CST