3 ms·
I don't know of any database that supports multi column count. But even if one did, count(*) does not have the semantics that you would expect from that. If the
by ants_a 6y ago
I don't know of any database that supports multi column count. But even if one did, count(*) does not have the semantics that you would expect from that. If the semantics were equivalent to expanding the column list then count(*) with a single nullable column would return the number of non-null values. But instead it is defined to return the number of rows regardless of context, being equivalent to count() or count(1).
- jimktrains2 6y agoI'm not entirely sure why I thought I've done a count with multiple columns before because it does indeed seem not to be a thing.