sql语句关于count与sum的坑,小心哟

执行:SELECT count(0),sum(rc) from tbname where false

得到结果:

count(0)      sum(rc)

0                  null

是不是很意外?这是个坑,一定要小心

猜你喜欢

转载自blog.csdn.net/xcg8818/article/details/109266581