Re: SELECT Question

Поиск
Список
Период
Сортировка
От Lada 'Ray' Lostak
Тема Re: SELECT Question
Дата
Msg-id 00c101c3af3a$539e19a0$0d01a8c0@utopia
обсуждение исходный текст
Ответ на SELECT Question  (Alex <alex@meerkatsoft.com>)
Ответы Re: SELECT Question  (Alex <alex@meerkatsoft.com>)
Список pgsql-general
> > 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..
> If I understand well, what something about
>
>     SELECT min(xxx) FROM table WHERE xxx<50
>
After I sent it, I saw I understand bad... Just woke up... Sorry :)

I personally think, you need small procedure do to that, because you want to
perform condition 'min(xxx)' on "unexisting" columns.

R.


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

Предыдущее
От: Shridhar Daithankar
Дата:
Сообщение: Re: Point-in-time data recovery - v.7.4
Следующее
От: "Lada 'Ray' Lostak"
Дата:
Сообщение: "Transaction over connections"