Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: PLSQL PROBLEM with &
I don't think Balaji's solution will work.
If I understand it correctly your problem is that SQL*Plus sees the
ampersand as a user variable delimiter and therefore prompts you for a value
for the variable..
There are many ways to solve this problem:
SET DEF OFF - will set user variable functionality off in SQL*Plus SET DEF '#' - will set the user variable delimiter to hash. SET ESCAPE ON - will allow you to escape the ampersand with a '\' - ie 'test\&01'.
.. any of these will solve your problem. There is probably heaps more.
Ray
Regards,
Balaji.
insert into adm_trace_log(TRACENO,LOGMESSAGE) values(100000,'test&01'); Enter value for 01:
thanx ....
-- ---------------------------------------------------------------------------- ----- George D. Benetos Electrical & Computer Engineer N.T.U.A -------------------------------------------------------------------------Received on Tue Apr 02 2002 - 20:56:57 CST