mysql 存储过程中已经定义了字符串,但字符串还是为null

版权声明:此文章为许诗宇所写,如需转载,请写下转载文章的地址 https://blog.csdn.net/xushiyu1996818/article/details/82189037

原因是 declare a varchar(100)
但是赋给a的字符串过长,塞不进去,导致a还是null
解决方法把定义时的最大长度变大即可

猜你喜欢

转载自blog.csdn.net/xushiyu1996818/article/details/82189037