Page 1 sur 1

Problème de triggers mysql

Posté : 24 mars 2011 10:18
par Scola
Salut, j'ai un problème de trigge ...
Chez moi, il marche bien, mais là, il me dit :
#1235 - This version of MySQL doesn't yet support 'multiple triggers with the same action time and event for one table'

Le code :

Code : Tout sélectionner

CREATE TRIGGER trg_autoi_order 
BEFORE INSERT ON `cat`
FOR EACH ROW
BEGIN
  SET NEW.`cat_order` = (SELECT (MAX(`cat_order`)+1) FROM `cat` WHERE `type` = NEW.`type`);
END
Voilà, je n'ai pourtant qu'une action ...
Je ne fait pas de multiple actions comme semble dire MySQL ...