Any ideas why this doesn't work or how to rewrite it?

Поиск
Список
Период
Сортировка
От Aaron Holtz
Тема Any ideas why this doesn't work or how to rewrite it?
Дата
Msg-id Pine.LNX.4.10.9904281144550.3587-100000@barbarossa.bright.net
обсуждение исходный текст
Ответы Re: [GENERAL] Any ideas why this doesn't work or how to rewrite it?  (Oleg Broytmann <phd@sun.med.ru>)
Re: [GENERAL] Any ideas why this doesn't work or how to rewrite it?  ("Gene Selkov, Jr." <selkovjr@mcs.anl.gov>)
Re: [GENERAL] Any ideas why this doesn't work or how to rewrite it?  (Herouth Maoz <herouth@oumail.openu.ac.il>)
Список pgsql-general
This seems like a simple SQL command, but I'm getting errors.
Running 6.5.0 under RedHat 5.2:

db=> select count(distinct customer_username) from customerdata;
ERROR:  parser: parse error at or near "distinct"

How do you get a count of distinct data output via postgres?  I can always
just count the number of tuples returned but this seemed to be a valid
query.

--------------------------------------------------------------------------
Aaron Holtz
ComNet Inc.
UNIX Systems Specialist
Email:  aholtz@bright.net
"It's not broken, it just lacks duct tape."
--------------------------------------------------------------------------



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

Предыдущее
От: jim@reptiles.org (Jim Mercer)
Дата:
Сообщение: Re: [GENERAL] PLpgSQL Stat Problem
Следующее
От: Oleg Broytmann
Дата:
Сообщение: Re: [GENERAL] Any ideas why this doesn't work or how to rewrite it?