Re: count( distinct x )

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: count( distinct x )
Дата
Msg-id 11661.975352224@sss.pgh.pa.us
обсуждение исходный текст
Ответ на count( distinct x )  (Anthony <lists@a1.org.uk>)
Список pgsql-sql
Anthony <lists@a1.org.uk> writes:
>     select count( distinct area ) from areapostcode where postcode like
> 'BS1%'
> the above statement fails with
>     ERROR:  parser: parse error at or near "distinct"

What Postgres version are you running?  Support for count(distinct foo)
was added in 7.0, IIRC.
        regards, tom lane


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

Предыдущее
От: Anthony
Дата:
Сообщение: Re: count( distinct x )
Следующее
От: Anthony
Дата:
Сообщение: Re: count( distinct x )