Mutating Table in Oracle 11 caused by a function
问题 We've recently upgraded from Oracle 10 to Oracle 11.2. After upgrading, I started seeing a mutating table error caused by a function rather than a trigger (which I've never come across before). It's old code that worked in prior versions of Oracle. Here's a scenario that will cause the error: create table mutate ( x NUMBER, y NUMBER ); insert into mutate (x, y) values (1,2); insert into mutate (x, y) values (3,4); I've created two rows. Now, I'll double my rows by calling this statement: