Re: BUG Report - Select distinct on
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dirk Elmendorf <delmendo@rackspace.com>
Cc: bugs@postgresql.org
Date: 2000-06-01T21:51:01Z
Lists: pgsql-bugs
Dirk Elmendorf <delmendo@rackspace.com> writes: > select distinct on label label from test; > ERROR:parser: parse error at or near "label"; The syntax is different in 7.0. Try select distinct on (label) label from test; Sorry about the loss of backwards compatibility, but this lets you select distinct on expressions and even multiple expressions, which wasn't possible with the old column-name-only syntax... regards, tom lane