sql statement about the pit of count and sum, be careful

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

got the answer:

count(0)      sum(rc)

0                  null

Was it unexpected? This is a pit, be careful

Guess you like

Origin blog.csdn.net/xcg8818/article/details/109266581