mysql执行存储过程时遇到的问题

参考:http://hi.baidu.com/iamzhangxinxu/item/b0a0a93661f12e84c3cf290e

遇到的check the manual that corresponds to your MySQL server version for the right syntax错误

遇到的check the manual that corresponds to your MySQL server version for the right syntax错误。

结果发现是SQL关键字冲突。

可能是经验不够吧。

有个字段名我命名为desc,表示描述(description)。却没有注意到,该desc与SQL查询语句中的降序排列关键字DESC冲突了!

后修改desc为descpt即问题解决!

出现这个问题的时候,也许是前面的sql写的有问题或者,我遇到的是前面应该是; 然后写成了: 导致把下面的一个声明语句declare....看成dec  出现了问题.

原文地址:https://www.cnblogs.com/hujia/p/3612876.html