Re: count function alternative in postgres

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: count function alternative in postgres
Дата
Msg-id 4BB9B1A80200002500030457@gw.wicourts.gov
обсуждение исходный текст
Ответ на count function alternative in postgres  (junaidmalik14 <junaidmalik14@gmail.com>)
Список pgsql-hackers
junaidmalik14 <junaidmalik14@gmail.com> wrote:
> Is there any alternative of mysql function COUNT(DISTINCT
> expr,[expr...]) in postgres. We get error if we write count like
> this count(distinct profile.id, profile.name, profile.age)
Is that semantically different from this SQL standard syntax?:
SELECT profile.id, profile.name, profile.age, COUNT(*) FROM profile GROUP BY profile.id, profile.name, profile.age;

-Kevin


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SPAM]Re: Questions about 9.0 release note
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Autonomous transaction