Re: question about count(b) where b is a custom type

Поиск
Список
Период
Сортировка
От Pollard, Mike
Тема Re: question about count(b) where b is a custom type
Дата
Msg-id 6418CC03D0FB1943A464E1FEFB3ED46B01B220AF@im01.cincom.com
обсуждение исходный текст
Ответ на question about count(b) where b is a custom type  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
Ответы Re: question about count(b) where b is a custom type  (Richard Huxton <dev@archonet.com>)
Список pgsql-hackers
> Firstly, if you just want a count, what's wrong with count(1) or
> count(*).
>

Because unless the column does not allow nulls, they will not return the
same value.

Mike Pollard
SUPRA Server SQL Engineering and Support
Cincom Systems, Inc.
--------------------------------Better to remain silent and be thought a fool than to speak out and
remove all doubt.        Abraham Lincoln




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: question about count(b) where b is a custom type
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: question about count(b) where b is a custom type