这里有0行和nullresult的区别
0行:
select salary from user where 1 = 2
null result:
select max(salary) from user where 1 = 2
返回就是null
0行一定抛出IncorrectResultSizeDataAccessException异常
以上是上网查找的结果,仔细一看确实是没有找到任何记录。
这里有0行和nullresult的区别
0行:
select salary from user where 1 = 2
null result:
select max(salary) from user where 1 = 2
返回就是null
0行一定抛出IncorrectResultSizeDataAccessException异常
以上是上网查找的结果,仔细一看确实是没有找到任何记录。
1303
1658
6864
2430

被折叠的 条评论
为什么被折叠?