存储过程错误 1172 - Result consisted of more than one row

来源:互联网 发布:淘宝仓库发货流程 编辑:程序博客网 时间:2024/05/18 23:55
具体的错误是:
[sql] view plaincopyprint?
  1. mysql> call guocui3.IssueAvatarItems('Jiangming', @ResultString);  
  2. ERROR 1172 (42000): Result consisted of more than one row  


一看到这个错误,就知道是在使用SELECT INTO的时候出现了多于一行的情况,导致IssueAvatarItems这个存储过程执行错误。