Re: problem to count (distinct number)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mikael Hedin <mikael(dot)hedin(at)irf(dot)se>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: problem to count (distinct number)
Date: 2001-01-18 21:09:38
Message-ID: 5132.979852178@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Mikael Hedin <mikael(dot)hedin(at)irf(dot)se> writes:
> SELECT COUNT (DISTINCT data ) FROM media;
> ERROR: parser: parse error at or near "distinct"

This is supported since 7.0. I suspect you are running an old release.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-01-18 21:19:50 Re: PostgreSQL HOWTO
Previous Message Stephan Szabo 2001-01-18 21:01:16 Re: problem to count (distinct number)