Re: PostgreSQL equivalent of the Oracale 'unique' qualifier

From: Bricklen Anderson <banderson(at)presinet(dot)com>
To: stafford(at)marine(dot)rutgers(dot)edu
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL equivalent of the Oracale 'unique' qualifier
Date: 2006-11-20 20:18:11
Message-ID: 45620D83.4060904@presinet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Wm.A.Stafford wrote:
> I hope the subject says it all. I'm porting an Oracle-centric
> application to PostgreSQL and the Oracle sql is full of the 'unique'
> qualifier. I'm assuming PostgreSQL does not support 'unique' since
> don't see a 'unique' anywhere in the PostgreSQL docs. Is there a
> substitute or a technique to get the same result?
>
> Thanks,
> -=bill stafford

DISTINCT, and PostgreSQL's proprietary extension, DISTINCT ON.
http://www.postgresql.org/docs/8.1/interactive/queries-select-lists.html#QUERIES-DISTINCT

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dann Corbit 2006-11-20 20:24:03 Re: PostgreSQL equivalent of the Oracale 'unique' qualifier
Previous Message Alvaro Herrera 2006-11-20 20:17:54 Re: PostgreSQL equivalent of the Oracale 'unique' qualifier