Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle 00904 & 06512 errors
Hi, Laurent !
If the in-variable is VARCHAR, then treat it that way; you wrote SQL for
NUMBER:
> AND OME.refer_op = '||p_refer_op||' ORDER BY libelle ASC';
This makes " ... AND OME.refer_op = E20767623 ... " - obviously wrong.
For a VARCHAR2, write
AND OME.refer_op = '''||p_refer_op||'''
instead. This makes " ... AND OME.refer_op = 'E20767623' ..."
hth, Jan Received on Wed Apr 28 2004 - 08:52:19 CDT