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

Home -> Community -> Usenet -> c.d.o.misc -> Oracle 00904 & 06512 errors

Oracle 00904 & 06512 errors

From: News <laurentfb_at_hotmail.com>
Date: Wed, 28 Apr 2004 15:28:19 +0200
Message-ID: <c6obno$apd$1@s1.read.news.oleane.net>


Hi,

I'm getting these errors when i execute a simple stored proc.

PROCEDURE getOpStudKey(
p_refer_op IN VARCHAR2,

p_curs OUT t_curs

)

IS

requete VARCHAR2(1000);

BEGIN requete := 'SELECT ME.refer AS refer, ME.libelle AS libelle

FROM MC_ETUDES ME, OP_MC_ETUDES OME WHERE ME.refer = OME.refer_mc_etudes

AND OME.refer_op = '||p_refer_op||' ORDER BY libelle ASC';

OPEN p_curs FOR requete;

END getOpStudKey;

If p_refer_op is equal to a string-number (ex : 2004001), it's ok

When it contains a char (ex : E2004001), I get the error.

What can it be due to ? Any explanations concerning these errors ?

Thanks,

Laurent. Received on Wed Apr 28 2004 - 08:28:19 CDT

Original text of this message

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