MySql创建触发器错误1064

标签 mysql

我写的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/

相关文章:

mysql - Mysql函数耗时太长

php - 选择上个月的所有记录但限制当月的记录

php - cakephp 博客教程 mysql now() 出现错误

mysql - 使用空间点类型在 MySQL 中存储 Lat Lng 值

Java Hibernate 多线程

php - SQL在第1行创建表错误

javascript - 为什么这个node-mysql插入会产生一个数组?

java - MySQL/SQL 增加一列

php - 如何加快Magento网站?

java - DHTMLX 甘特图未存储到数据库