首页 > 其他 > 详细

Expected one result (or null) to be returned by selectOne(), but found: 6] with root cause

时间:2020-11-17 16:10:26      阅读:52      评论:0      收藏:0      [点我收藏+]

一、报错信息

Expected one result (or null) to be returned by selectOne(), but found: 6] with root cause

技术分享图片

二、出现原因

在做后台分页的查询中,写错了查询sql,导致返回值多了,正确的结果应是一条,

技术分享图片

三解决方法

重写sql,selcet count(*) from dept_inf.

真是太粗心大意了。

Expected one result (or null) to be returned by selectOne(), but found: 6] with root cause

原文:https://www.cnblogs.com/peanut-zh/p/13994289.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!