CREATE TRIGGER `lastedited` AFTER UPDATE ON `eng-jap`
FOR EACH ROW
BEGIN
UPDATE `mrhowtos_main`.`eng`
SET `lastmodified` = CURRENT_TIMESTAMP WHERE `eng`.`english` = old.eng;
UPDATE `mrhowtos_main`.`jap`
SET `lastmodified` = CURRENT_TIMESTAMP WHERE `jap`.`japanese` = old.jap;
END;
由MySQL返回的錯誤是: MySQL表示:文件MySQL中這個CREATE TRIGGER語句的語法有什麼問題?
#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 5
你確定在輸入你的表名時沒有語法錯誤嗎? ,似乎日文是錯誤 –
請格式化您的代碼 – Sebas
100%確定表和列名稱是正確的 – user1397417