SELECT Question

Поиск
Список
Период
Сортировка
От Alex
Тема SELECT Question
Дата
Msg-id 3FBC6BA6.6070709@meerkatsoft.com
обсуждение исходный текст
Список pgsql-general
Hi,
I have a column with a sequence in a table and want to allocate the
first 200 for special purpose thus starting the sequence from 200. For
the first 200 I have entries that will be added and removed.

Is there an easy way to write a select statement that returns me the
frist free number or any within the range of 200?
For example if 1-30, and 32-50 are occupied then i would like to fill in
the new entry with id 31.
I currently do it with a function but I was just wondering if there is a
way without it..

Thanks
Alex





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

Предыдущее
От: Shridhar Daithankar
Дата:
Сообщение: Re: Picture with Postgres and Delphi
Следующее
От: "Lada 'Ray' Lostak"
Дата:
Сообщение: Re: SELECT Question