Zdravim, lze v triggeru pouzivat delete? Chtel bych mit na tabulce trigger, ktery mi smaze urcita data. Trigger je zde:
create trigger trSmaz
before insert
on bezpecna
for each row
begin
delete from bezpecna where plat > 10000;
end;
trigger se mi normalne vytvori, ale jakmile zavolam insert na tuto tabulku tak se mi vypise hlaska:
Can't update table 'bezpecna' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.