Result consisted of more than one row

来源:互联网 发布:知乎可以用邮箱注册吗 编辑:程序博客网 时间:2024/05/05 10:57
执行存储过程,  报错: Result consisted of more than one row 
检查后发现: 某条SQL语句  

select ... into from tableName where ... 


查询的结果有多条记录导致. 
只要在这条语句后加一个限制即可: 
select ... into from tableName where ... limit 1;
原创粉丝点击