Re: PostgreSQL equivalent of the Oracale 'unique'

From: Jeff Davis <pgsql(at)j-davis(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'
Date: 2006-11-20 22:07:57
Message-ID: 1164060477.32134.15.camel@dogma.v10.wvs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rodrigo Gonzalez 2006-11-20 22:46:21 Re: More on unique vs distinct
Previous Message Adrian Klaver 2006-11-20 22:01:47 Re: PostgreSQL equivalent of the Oracale 'unique' qualifier