Re: techniques for manual ordering of data ?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: techniques for manual ordering of data ?
Дата
Msg-id 20040508163641.GA7519@wolff.to
обсуждение исходный текст
Ответ на techniques for manual ordering of data ?  ("Peter Galbavy" <peter.galbavy@knowtion.net>)
Список pgsql-sql
On Sat, Feb 07, 2004 at 10:47:37 -0000, Peter Galbavy <peter.galbavy@knowtion.net> wrote:
> 
> Here, a photograph may appear in multiple catalogue/collection places. What
> I want to do is to allow the admin to reorder the display by using + / -
> style buttons. My initial thought was to use an arbitrary "ordering" column,
> like old BASIC line numbers, which would be initially allocated in 10s or
> 100s, and then updating the value via the UI and occassionally applying a
> "renum" style function when the list gets uneven.

Numeric might be better for this than int, since you can keep subdividing
without having to renumber. If you hide the real numbers from the users,
you might not ever need to do a bulk renumber.


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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: CONTEXT on PL/pgSQL
Следующее
От: Denis Braekhus
Дата:
Сообщение: Re: not really SQL but I need info on BLOBs