Subject | Re: [firebird-support] * vs fieldname |
---|---|
Author | Kjell Rilbe |
Post date | 2007-09-14T05:07:27Z |
Yes, but you should probably use count(*) because that's what you mean.
Using count(<fieldname>) requires you (someone else reading your code)
to examine the nullability of <fieldname> to be able to determine if it
will result in the same thing as count(*) or not.
This is usually more important than you think - readability.
Kjell
Nick Upson wrote:
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
Using count(<fieldname>) requires you (someone else reading your code)
to examine the nullability of <fieldname> to be able to determine if it
will result in the same thing as count(*) or not.
This is usually more important than you think - readability.
Kjell
Nick Upson wrote:
> Thanks everyone, so if myfieldname is not nullable they will always be--
> equivalent
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64