Re: How to update record in a specified order

Поиск
Список
Период
Сортировка
От Dan Langille
Тема Re: How to update record in a specified order
Дата
Msg-id 3D5403CE.24005.28A4CC60@localhost
обсуждение исходный текст
Ответ на Re: How to update record in a specified order  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-sql
On 9 Aug 2002 at 14:37, Josh Berkus wrote:

> JLL,
> 
> > I want to update a field with a 'NEXTVAL', but I want the record updated
> > in a specific order.
> > Any simple way of doing this other than having to create a temp table?
> 
> Please be more speciifc.  What do you mean, "specified order"?

My reading of what is required:

- sort a given result set according to some criteria
- then do something like UPDATE table SET myfield = NEXTVAL
- each row in the result set would get a value one more than the previous row

-- 
Dan Langille
I'm looking for a computer job:
http://www.freebsddiary.org/dan_langille.php



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

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: How to update record in a specified order
Следующее
От: "Adam Erickson"
Дата:
Сообщение: Re: retrieving all rows from a "tree" in one select - how ?