In MySql we can count the total number of records by using count(1) or count(*).
Is there any technical difference between them?
|
|
|
They are the same. This has often been asked in Stackoverflow and here
all return the count. In fact, in SQL Server, the expression isn't even evaluated.
won't return an error. FWR in MySQL |
|||||||||||||||||
|