Re: Preventing duplicate records according to several fields

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Preventing duplicate records according to several fields
Дата
Msg-id 279ED533-4E9D-44E3-8B21-3EC535AA31DB@myrealbox.com
обсуждение исходный текст
Ответ на Preventing duplicate records according to several fields  (CSN <cool_screen_name90001@yahoo.com>)
Список pgsql-general
On Sep 21, 2005, at 10:34 AM, CSN wrote:

> id, title, yield, directions
>
> and would like to prevent duplicate records from being
> added (i.e. according to the title, yield, and
> directions fields).

<snip />

> - Create a unique index across the title, yield, and
> directions fields.

This scenario is exactly what the UNIQUE contraint is for.

Michael Glaesemann
grzm myrealbox com



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

Предыдущее
От: CSN
Дата:
Сообщение: Preventing duplicate records according to several fields
Следующее
От: suresh ramasamy
Дата:
Сообщение: Re: help me pls