简体   繁体   English

MySQL Workbench错误1305 PROCEDURE不存在

[英]MySQL Workbench error 1305 PROCEDURE doesn't exist

I'm trying to execute a statment in MySql to update a column in a table when the expiry date for one of the other columns surpasses the current date, this is then compared against something to make sure that there are no active people for it 我试图在MySql中执行一条语句以更新表中的其他列之一的过期日期超过当前日期时的列,然后将其与某项进行比较以确保没有活动人员

but i keep getting this error , i can not see anything wrong with my syntax so im not sure what it is 但我一直收到此错误,我的语法看不到任何错误,所以我不确定这是什么

Error 1305 PROCEDURE does not exist 错误1305过程不存在

UPDATE job j SET archived = 1 WHERE(SELECT count(*) FROM job_applied_candidates jac WHERE jac.jobID = j.id) = 0 AND enddate < now();

Add a space between WHERE an (Select ... 添加之间的空间WHERE(Select ...

Also check triggers on jobs table, since they could use a procedure that does not exist. 还要检查jobs表上的触发器,因为它们可以使用不存在的过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM