Re: PostgreSQL equivalent of the Oracale 'unique'

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: PostgreSQL equivalent of the Oracale 'unique'
Дата
Msg-id 1164060477.32134.15.camel@dogma.v10.wvs
обсуждение исходный текст
Ответ на PostgreSQL equivalent of the Oracale 'unique' qualifier  ("Wm.A.Stafford" <stafford@marine.rutgers.edu>)
Список 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 по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: More on unique vs distinct
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL equivalent of the Oracale 'unique' qualifier