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 -> Re: Help !!!ORA-06502: PL/SQL: numeric or value error: character to number conversion error

Re: Help !!!ORA-06502: PL/SQL: numeric or value error: character to number conversion error

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 29 Mar 2006 11:31:27 -0800
Message-ID: <1143660678.1215@yasure.drizzle.com>


JC wrote:
> I get this error from the following line... Can anyone tell me why???
>
> colvalue number;
> mcn varchar(100);
> lotid number;
> mrn rowid;
>
> select mcn into colvalue from lotz where lot_id=lotid and rowid=mrn;
>
> I have tried this also
>
> Execute Immediate 'select '||mcn||' into '||colvalue||' from lotz where
> lot_id='||lotid||' and rowid='||mrn;
>
>
> Thanks,
>
> JC

I agree with what Terry said but I am a bit concerned about your use of ROWID and the values. It looks like a bad idea even if properly implemented.

How is this being used and why?

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Wed Mar 29 2006 - 13:31:27 CST

Original text of this message

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