今天在使用MySQL的存储过程的时候遇到的错误,百度上搜索也没找到对应的解决方案,简单记录一下
错误代码:08S01
错误描述:Got an error writing communication packets
贴出一小段SQL:
select feepay_wx into p_keyname from t_user_expand where user_id=p_agentId;
#select p_keyname;
select count(keyvalue) into ldcount from t_fee_expression where keyName=p_keyname;
#select ldcount;
由于我测试的时候写的select查看变量值的语句,可能导致的返回结果太多了,所以报了这个错误,当我把这些select语句都注释掉以后就正常了。