SQL Server - Count(*) or Count(1) ? - Which is better?(beyondrelational.com)
submitted by
ashish.gilhotra(354) 1 year, 6 months ago
Every so often on the on-line forums, the question of : Which is better Count(*) or Count(1) ? will occur. So can it categorically be proved than one is better than the other ?
What we need to do is populate a table and use both count(*) and count(1) and see if we get any performance difference between the two.
|category: Database
|Views: 668
tags:
Database another
Everyones tags:
Your Tags: