gpt4 book ai didi

MySql创建触发器错误1064

转载 作者:行者123 更新时间:2023-11-29 12:04:00 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com