count function alternative in postgres

Поиск
Список
Период
Сортировка
От junaidmalik14
Тема count function alternative in postgres
Дата
Msg-id 28126793.post@talk.nabble.com
обсуждение исходный текст
Список pgsql-general
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)
but it works well in mysql.

Reference url is given below

http://dev.mysql.com/doc/refman/5.1/en/group-by-functions.html#function_count-distinct

Thanks
--
View this message in context: http://old.nabble.com/count-function-alternative-in-postgres-tp28126793p28126793.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: junaid malik
Дата:
Сообщение: count function alternative in postgres
Следующее
От: Tom Lane
Дата:
Сообщение: Re: count function alternative in postgres