MySQL Forums
Forum List  »  Triggers

problem with syntax in trigger
Posted by: luiz gehlen
Date: October 14, 2011 03:30AM

Trigger

CREATE TRIGGER trg_luiz AFTER UPDATE ON imoveis
FOR EACH ROW
BEGIN
UPDATE fotos SET del = NEW.del WHERE cod_imovel = NEW.cod_imovel;
END;

Error Message:
#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 4

I did not understand where are the quotes, you can help me?

Options: ReplyQuote


Subject
Views
Written By
Posted
problem with syntax in trigger
1888
October 14, 2011 03:30AM
1227
October 14, 2011 06:41AM


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.