报错解决记录

时间:2021-01-27 13:38:40   收藏:0   阅读:0

索引:-1064-1328- 

----------------------------------------------------------------------------------------------------------------------------------------

-- 1064 --  记录日期:2021-01-26

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 ‘declare aa int default null‘ at line 2

解决:定义变量必须在定义游标之前

----------------------------------------------------------------------------------------------------------------------------------------

-- 1328 --  记录日期:2021-01-26

1328 - Incorrect number of FETCH variables

 解决:游标在fetch的时候查出来的字段和into的字段数量不一样。

----------------------------------------------------------------------------------------------------------------------------------------

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!