Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CREATE TRIGGER giveaccess AFTER INSERT ON `befree_user` FOR EACH ROW BEGIN INSERT INTO user_access(user_id) VALUES (NEW.user_id); END;
次の区切り文字を定義する必要があります;
;
delimiter | CREATE TRIGGER giveaccess AFTER INSERT ON `befree_user` FOR EACH ROW BEGIN INSERT INTO user_access(user_id) VALUES (NEW.user_id); END; | delimiter ;
そうでない場合、DBは、最初;のステートメントの後にステートメントが実行されたと見なし、エラーをスローします。