gpt4 book ai didi

MySQL错误:1064 while calling a stored procedure from an event

转载 作者:行者123 更新时间:2023-11-30 01:03:48 25 4
gpt4 key购买 nike

CREATE EVENT E_UpdateTimestampFields
ON SCHEDULE
EVERY 1 MINUTE
STARTS TIMESTAMP(CURRENT_DATE,'00:00:00')
ON COMPLETION PRESERVE
DO `ndwnaleveringen`
CALL spc_UpdateTimeStampFields();

这是用于创建事件的代码,该事件将调用存储过程 spc_UpdateTimeStampFields()。 ndwnaleveringen 是数据库的名称。执行此事件时出现错误

Error Code: 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 'CALL spc_UpdateTimeStampFields()' at line 7

最佳答案

尝试

CREATE EVENT E_UpdateTimestampFields
ON SCHEDULE
EVERY 1 MINUTE
STARTS TIMESTAMP(CURRENT_DATE,'00:00:00')
ON COMPLETION PRESERVE
DO
CALL ndwnaleveringen.spc_UpdateTimeStampFields();

关于MySQL错误:1064 while calling a stored procedure from an event,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19858598/

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