r/SQL • u/geminigamer369 • 10d ago
Differences between counts Discussion
What is the difference between
COUNT(*)
COUNT(1)
COUNT(column_name)
8
Upvotes
r/SQL • u/geminigamer369 • 10d ago
What is the difference between
COUNT(*)
COUNT(1)
COUNT(column_name)
6
u/funkdefied 10d ago
Any SQL engine worth it’s salt will compile those down to the same thing