Re: PostgreSQL equivalent of the Oracale 'unique' - Mailing list pgsql-general

From Jeff Davis
Subject Re: PostgreSQL equivalent of the Oracale 'unique'
Date
Msg-id 1164060477.32134.15.camel@dogma.v10.wvs
Whole thread Raw
In response to PostgreSQL equivalent of the Oracale 'unique' qualifier  ("Wm.A.Stafford" <stafford@marine.rutgers.edu>)
List pgsql-general
On Mon, 2006-11-20 at 15:13 -0500, 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?
>

You mean a UNIQUE index on a column?

http://www.postgresql.org/docs/8.1/static/sql-createtable.html
http://www.postgresql.org/docs/8.1/static/sql-createindex.html

The postgresql docs are filled with the word "UNIQUE".

Regards,
    Jeff Davis


pgsql-general by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: More on unique vs distinct
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL equivalent of the Oracale 'unique' qualifier