Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-6502: value or numeric error

onkar.nathMay 29 2009 — edited May 29 2009
Hi all,

First off all, I am not very good in PL/SQL so please bear with me:

I have a trigger on a table on after update event. Sample code of the trigger:

create or replace trigger t1
on table1
after update of col1
for each row
begin
for inx in varray1.first .. varray1.last
loop
do something;
end loop;
end;
/

This trigger throws an error saying "ORA-6502: value or numeric error" if I am trying to update anything into that table but the same trigger works fine when I remove "FOR EACH ROW" statement from the trigger. There is absolutely no change except removal of FOR EACH ROW clause.

I am unable to figure out why. Do anybody?

Thanks in adnvace.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2009
Added on May 29 2009
8 comments
696 views