我写的sql如下:
create
trigger test_schedule_trigger after update on tw_task
as
update tw_test_schedule test, tw_task task
set test.name = task.name,test.`type`=task.`type`,test.is_deleted=task.is_deleted,test.gmt_modified=task.gmt_modified;
where tw_test_schedule.task_id = tw_task.id;
错误描述为:
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 'where tw_test_schedule.task_id = tw_task.id' at line 1
最佳答案
尝试删除 ;在 WHERE
关于MySql创建触发器错误1064,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31871303/