Delimiter$$
create trigger salary_delete
before delete
on salary
for each row begin
insert into salary_dele(eid,validfrom,amount)
value(old.eid,old.validfrom,old.amount);
end if;
end$$
delimeter;
UNABLE TO FIND THE MISTAKE .PLEASE HELP
Delimiter$$
create trigger salary_delete
before delete
on salary
for each row begin
insert into salary_dele(eid,validfrom,amount)
value(old.eid,old.validfrom,old.amount);
end if;
end$$
delimeter;
UNABLE TO FIND THE MISTAKE .PLEASE HELP
Simply
Single-statement compound statement does not need in BEGIN-END and DELIMITER.