Re: Storing an ordered list

Поиск
Список
Период
Сортировка
От Michael Artz
Тема Re: Storing an ordered list
Дата
Msg-id e9c163070607261713j21d8e9a1n2e2ea25bd30de39c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Storing an ordered list  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: Storing an ordered list  (Bruno Wolff III <bruno@wolff.to>)
Re: Storing an ordered list  ("Aaron Bono" <postgresql@aranya.com>)
Список pgsql-sql
On 7/26/06, Bruno Wolff III <bruno@wolff.to> wrote:
> If you use numeric instead of int, then it is easy to insert new values.

Hmm, hadn't thought about that.  How would you normally implement it?
I'm thinking that, if I wanted to insert between A and B, I could take
(A.order + B.order)/2, which would be pretty simple.  Is there a
better way?


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

Предыдущее
От: "Michael Artz"
Дата:
Сообщение: Re: Storing an ordered list
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Storing an ordered list