Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: FORALL Insert error into ORA-00947 - Too many values...
jeddy wrote:
> fitzjarrell_at_cox.net wrote:
> > Raman wrote:
> > > Hi,
> > >
> > > I am using this code to transfer data from 1 table to another....
> > >
> > > ----- Code start ----------------
> > >
> > > -- Second for loop
> > > FORALL j IN sstat.FIRST.. sstat.LAST
> > > INSERT INTO TST_SEG_STATUS
> > > VALUES (tstat(j));
> > >
> > > -- Commit records
> > > COMMIT;
> > >
> > > ----- Code End -------
> > >
> > > Thnaks
> > > -- Raman
> >
> > Let me guess (although I shouldn't need to): you're not using 10gR2,
> > you're using 9iR2. If so, therein lies your 'problem' as such code is
> > not usable in 9i.
> >
> > Upgrade to 10gR2 and I expect your 'problem' will disappear. And
> > always state the Oracle release (all four numbers) and operating system
> > when asking questions, It prevents us from wasting time guessing what
> > release you're using, and, subsequently, what your 'problem' might
> > actually be.
> >
> >
> > David Fitzjarrell
>
>
>
The error message is:
SQL> show errors
Errors for PROCEDURE TEST_ARR:
LINE/COL ERROR
FORALL j IN sstat.FIRST.. sstat.LAST INSERT INTO TST_SEG_STATUS VALUES (tstat(j));
is valid only in 10g.
David Fitzjarrell Received on Tue Mar 28 2006 - 08:22:10 CST