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 -> ORA-06502: PL/SQL: numeric or value error-6502 - ANY IDEA ????

ORA-06502: PL/SQL: numeric or value error-6502 - ANY IDEA ????

From: Filiz Duman <filiz.duman_at_bt.com>
Date: Fri, 27 Sep 2002 15:11:57 +0100
Message-ID: <an1p8l$o92$1@pheidippides.axion.bt.co.uk>


I have a HTML based input mask for a sql statement. As soon as the user press the Submit button I build (dynamically) a sql statement string and pass it to another page to show the results.

e.g. Select x,y,z from a, b c where condition1 or condition2 or condition3.

condition1 e.g:          x like '%NATL%'
condition2 e.g:         y like  '%Voice%'
condition3 e.g:        z like '%Y%'

The string as follows:

l_sqlstring varchar2(25000) := sqlstring;

Now to my problem:

Every time I extend the sql statement with the third condition and want to show the results it shows the ORA-06502: PL/SQL: numeric or value error-6502.
If I have just two conditions (no matter which one) it is working ok. The sql statement itself is not wrong since is working ok in the sql command prompt.

Any ideas ?

Thanks in advance. Received on Fri Sep 27 2002 - 09:11:57 CDT

Original text of this message

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