Re: PostgreSQL equivalent of the Oracale 'unique' qualifier

Поиск
Список
Период
Сортировка
От Bricklen Anderson
Тема Re: PostgreSQL equivalent of the Oracale 'unique' qualifier
Дата
Msg-id 45620D83.4060904@presinet.com
обсуждение исходный текст
Ответ на PostgreSQL equivalent of the Oracale 'unique' qualifier  ("Wm.A.Stafford" <stafford@marine.rutgers.edu>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: PostgreSQL equivalent of the Oracale 'unique' qualifier
Следующее
От: "Wm.A.Stafford"
Дата:
Сообщение: More on unique vs distinct