getting at sequence previous/next values

Поиск
Список
Период
Сортировка
От Louis-David Mitterrand
Тема getting at sequence previous/next values
Дата
Msg-id 20070226181451.GA9015@apartia.fr
обсуждение исходный текст
Список pgsql-sql
Hello,

I've got a table that looks basically like:
id_show         | serialshow_name       | text show_type       | text                        created_on      |
timestampwithout time zone 
 

When looking at a row with an id_show of value n, I'd like to have an 
easy way of knowing the preceding and next values of id_show in the 
sequence (which might have holes).

Is there some convenient way to get that info, or must I do a full-blown 
select?

Thanks,


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

Предыдущее
От: "Rommel the iCeMAn"
Дата:
Сообщение: Re: Change Default Database
Следующее
От: "Rodrigo De León"
Дата:
Сообщение: Re: Change Default Database