Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Auto generating Sequences !!
>>>1) As it is written, it won't work
It worked without getting "table is mutating" error. But i got "table is mutating" error when i tried following code.
select count(loan_number)+1 into :new.payment_number from loan where
loan_number=:new.loan_number ;
It works without error when i first assign it to a variable and then to
field.
(I posted my code after executing it and affter i got correct result).
That might be a feature of ORACLE 10g ex (or may be a bug !!)