Re: count function alternative in postgres

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: count function alternative in postgres
Дата
Msg-id 14131.1270493226@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: count function alternative in postgres  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
Merlin Moncure <mmoncure@gmail.com> writes:
> On Sat, Apr 3, 2010 at 3:02 PM, Scott Bailey <artacus@comcast.net> wrote:
>> SELECT COUNT( DISTINCT row(col1, col2, col3) ) FROM foo

> very clever!  This is similar to how I use rowtypes to get around the
> single column restrictions on function calls in the select field list.

Cute, but note it will only work in 8.4 or later ...

            regards, tom lane

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: count function alternative in postgres
Следующее
От: Heine Ferreira
Дата:
Сообщение: windows 7 compatiblity?