Error while executing Mariadb update statement

跟風遠走 提交于 2020-06-09 03:29:09

问题


I'm using following update statement to update a row in a table of my database

update department
set budget = budget + 0.01
where dept_name = 'Physics';

However, running this code gives the following error:

ERROR 1305 (42000): PROCEDURE university.update_budget_proc does not exist

I'm not able to make anything out of this error message. I have attached the screenshot of when I type the commands in terminal.

Also, to mention that I have never created any procedure 'update_budget_proc' which is mentioned in the error message. Does it really have anything to do with the update statement ?


回答1:


The guess in the comments above turned out to be right.

The UPDATE was executing a trigger, which in turn had a reference to a stored procedure that no longer exists.



来源:https://stackoverflow.com/questions/54908475/error-while-executing-mariadb-update-statement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!