Mysql报错:1172 - Result consisted of more than one row

时间:2016-05-11 15:15:50   收藏:0   阅读:6729

执行mysql函数时报错:1172 - Result consisted of more than one row

 

函数语句中select into语句中WHERE account = userName查出的结果出现2条相同的记录才报出这个错误

SELECT id,last_stamp,token INTO userID,lastStamp2,tokenStr2 FROM game_user WHERE account = userName;

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!