标签: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