Count(1) in mysql will count null rows! count (column name) will not count null rows! count(*) will count null rows (same as SQLite)

Source:
Disclaimer: If I violate anyone's rights, please contact me and I will delete it.
Welcome experts to spray me

count(id) for comparison

Insert picture description here

count (column name) will not count null rows

Insert picture description here

count(*) will count null rows

Insert picture description here

count(1) will count null rows

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_45531729/article/details/111870595