码迷,mamicode.com
首页 > 其他好文 > 详细

报错解决记录

时间:2021-01-27 13:38:40      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:ror   mys   erro   version   fetch   int   efault   use   索引   

索引:-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的字段数量不一样。

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

报错解决记录

标签:ror   mys   erro   version   fetch   int   efault   use   索引   

原文地址:https://www.cnblogs.com/qvnv/p/14331481.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!