How do you delete rows from a table, where a column contains a substring, but the type of that column is 'Long'. (Yes, I know I shouldn't use Long, but I'm maintaining someone else's mess).
My first attempt was:
delete from longtable
where search_long(rowid) like '%hello%';
(following on from this answer)
This returns:
SQL Error: ORA-04091: table blah.longtable is mutating, trigger/function may not see it