Home Forums Article Discussions Article Discussions by Author Discuss content posted by Charles Kincaid Using a column name in a COUNT function RE: Using a column name in a COUNT function
marvin.elder
SSC Enthusiast
Points: 191
More actions
January 30, 2015 at 3:39 am
#1774286
Since I deal with different RDBMS's I use COUNT(1) or COUNT(primarykey).
In some SQL-compliant databases, COUNT(1) can return different results than COUNT(*).