CREATE TRIGGER giveaccess AFTER INSERT ON `befree_user`
FOR EACH ROW BEGIN
INSERT INTO user_access(user_id) VALUES (NEW.user_id);
END;
CREATE TRIGGER giveaccess AFTER INSERT ON `befree_user` FOR EACH ROW BEGIN INSERT INTO user_access(user_id)
Share
you need to define another delimiter than
;If not the DB thinks that after the first
;the statement is done and will throw an error.