84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
人生最曼妙的风景,竟是内心的淡定与从容!
The count function returns a numerical type and will not get null
Will it benull这取决于你的sql跟ibatis没有任何关系。select count(1) from test where 1=0你可以使用这个sql证明一下会不会为null?
null
sql
ibatis
select count(1) from test where 1=0
Direct conversion toIntegerwill not work, but unboxing will.
Integer
int i = (Integer) null; //NullPointer Exception Integer i1 = (Integer) null; //null
The count function returns a numerical type and will not get null
Will it be
null
这取决于你的sql
跟ibatis
没有任何关系。select count(1) from test where 1=0
你可以使用这个sql
证明一下会不会为null
?Direct conversion to
Integer
will not work, but unboxing will.