Bonjour
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
CREATE TRIGGER demande_before_insert
AFTER INSERT ON codebarre 
FOR EACH ROW 
BEGIN
if SUBSTR(NEW.code,3,3)='001' THEN
begin
INSERT INTO codebarreanom SET  code = NEW.code
end 
end;
j'ai un problème erreur : #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 end' at line 8
Merci de votre help .