Re: Update with a Repeating Sequence

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: Update with a Repeating Sequence
Дата
Msg-id CB8BCEA5-E9BD-443B-8128-E11FB91EDF5C@blighty.com
обсуждение исходный текст
Ответ на Re: Update with a Repeating Sequence  (Bill Thoen <bthoen@gisnet.com>)
Список pgsql-general
On Oct 14, 2008, at 11:36 AM, Bill Thoen wrote:

> The table exists already; all I need to do is update the sequence
> code to make the records unique, but also I need each repeating set
> numbered from 0 (Zero) so I can select a list of unique farm field
> records where seq = 0.

"select distinct on (field_id) * from table;" should let you do that,
without requiring the repeating set stuff.

Cheers,
   Steve



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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: databases list to file
Следующее
От: Vladimir Dzhuvinov
Дата:
Сообщение: Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?