MySQL Forums
Forum List  »  Triggers

Re: 1064 Error creating a trigger
Posted by: Dina Adballas
Date: October 03, 2009 07:39PM

hello,

I need to use a trigger in my program but I got a synthax error and I dont know what is wrong with my trigger, can you help me please? I am working with Mysql. thank you.

CREATE TRIGGER idmere_update AFTER UPDATE ON AJ_categorie
FOR EACH ROW
BEGIN
DECLARE idmere int;

select max(CATCODE) into @idmere
from AJ_categorie ;

update AJ_categorie set AJ__CATCODE=@idmere where CATCODE=@idmere;
END

Options: ReplyQuote


Subject
Views
Written By
Posted
3711
September 24, 2009 05:22AM
1673
September 24, 2009 05:37AM
1821
September 24, 2009 07:47AM
Re: 1064 Error creating a trigger
1977
October 03, 2009 07:39PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.