create trigger tplog_insert_personal AFTER INSERT ON personal
FOR EACH ROW BEGIN
insert tp_log (id_personal, `date`,`bit`)
select 3,NOW(),1
end
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 'insert tp_log (id_personal, `date`,`bit`) select 3,NOW(),1 end' at line 3 0.000 sec