Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> mutating table error
Is it possible to write an update trigger on a table with a select on this
table in it?
When I try I get a mutating table error.
e.g. a trigger to prevent a table from having more than 1 entry for a certain value of an attribute
Select count(*)
into iCount from T where :old.attrib = <somevalue>
raise .... etc..
Why doesn't Oracle allow this? is there a workaround? Received on Fri Aug 07 1998 - 09:45:51 CDT
![]() |
![]() |