У меня есть следующий триггер
create or replace trigger Overwrite
before insert on Comments
Compound trigger
declare
begin for each row
declare
num number;
begin
select count('x') into num
from comments
where title = :new.title
and director = :new.director
and club = :new.club
and nick = :new.nick;
if num != 0 then
delete from Comments
where title = :new.title
and director = :new.director
and club = :new.club
and nick = :new.nick;
end if;
end;
И когда я делаю массивную вставку, я получаю ошибку таблицы мутантов
insert into Membership(nick, club, mentor, type, req_date, inc_date, end_date, req_msg, acc_msg) values('davina', 'Fellowship of the Correct', 'adalbi', 'I', sysdate-2, sysdate, null, 'sdfghjhgfd', '23456543dcvbh');
insert into Proposals values ('O', 'Tim Blake Nelson', 'Fellowship of the Correct', 'davina', sysdate, 'asdkhaskd', 'lakshndlkjasdlkjasdfhasdjklhasdfjhkladfsjlhjklashjklds');
insert ALL
into comments (club, nick, msg_date, title, director, subject, message, valoration) values ('Fellowship of the Correct', 'ecp', sysdate-3, 'O', 'Tim Blake Nelson', 'asd', 'adsfasdfasdf', 10)
into comments (club, nick, msg_date, title, director, subject, message, valoration) values ('Fellowship of the Correct', 'ecp', sysdate-2, 'O', 'Tim Blake Nelson', 'asd', 'adsfasdfdfghdfghasdf', 10)
into comments (club, nick, msg_date, title, director, subject, message, valoration) values ('Fellowship of the Correct', 'ecp', sysdate-1, 'O', 'Tim Blake Nelson', 'asd', 'adsfasdfwertwerasdf', 10)
into comments (club, nick, msg_date, title, director, subject, message, valoration) values ('Fellowship of the Correct', 'ecp', sysdate, 'O', 'Tim Blake Nelson', 'asd', 'adsfasdewrbtvwfasdf', 10)
select * from dual;
Проблема заключается в том, что при выполнении простой вставки I У меня нет проблемы с таблицей мутантов, но при массовых вставках возникает ошибка таблицы мутантов, которую я не очень хорошо понимаю, почему она возникает, и я не вижу, как ее исправить, если кто-то знает и может объяснить мне, как это исправить и почему это происходит, было бы хорошо.
Спасибо