MySQL Forums
Forum List  »  InnoDB

Re: SQL Error (1064): You have an error in your SQL syntax.
Posted by: Clive Wightman
Date: February 22, 2013 04:00AM

Have managed to fix the table issue removed the charset..

But now when trying to create the Trigger I get.

/* SQL Error (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 'TRIGGER `URSAUDIT_UPD` AFTER UPDATE

ON `swanalysts`


F */
/*



help please


use sw_systemdb ;

DELIMITER //

CREATE
TRIGGER `URSAUDIT_UPD` AFTER UPDATE

ON `swanalysts`


FOR EACH ROW BEGIN


INSERT INTO AUDIT (analystid, changeby, fullname, modificationmade, changetype)

values ( old.analystid, user(), old.name, new.name, 'UPDATE') ;

END ;

//



DELIMITER ;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: SQL Error (1064): You have an error in your SQL syntax.
3191
February 22, 2013 04:00AM


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.