Code in MySQL:
create trigger insert_adm
after
insert on table_student for each row BEGIN
INSERT INTO
Admission(ID_Student, registration_date)
VALUES
(new.ID_Student, CURDATE()) END;
Error output:
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'END' at line 7.
I have no clue what to do Whats wrong in this mysql code?