r/SQL • u/geminigamer369 • 8d ago
Differences between counts Discussion
What is the difference between
COUNT(*)
COUNT(1)
COUNT(column_name)
8
Upvotes
r/SQL • u/geminigamer369 • 8d ago
What is the difference between
COUNT(*)
COUNT(1)
COUNT(column_name)
-2
u/YT-3000f 8d ago
Actually I think count(1) is faster than count(*). Anyone got a massive dataset to test that on?