Bonjour,
je veux creer un trigger qui à chaque insertion dans une table "user", met à jours une table "tigger_log". voici mon code sql :
Mysql me souligne les lignes :Code:
1
2
3
4
5
6 CREATE TRIGGER log BEFORE INSERT ON user FOR EACH ROW BEGIN INSERT INTO tigger_log(latable, ladate, username, laction) VALUES ('user', '2013-08-08', 'root', 'INSERT on user'); END;
etCode:CREATE TRIGGER log BEFORE INSERT
et m'affiche cette erreur :Code:INSERT
quelqu'un peut m'aider ?!Citation:
MySQL meldet: Dokumentation
#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 '' at line 5