SELECT Question - Mailing list pgsql-general

From Alex
Subject SELECT Question
Date
Msg-id 3FBC6BA6.6070709@meerkatsoft.com
Whole thread Raw
List 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 by date:

Previous
From: Shridhar Daithankar
Date:
Subject: Re: Picture with Postgres and Delphi
Next
From: "Lada 'Ray' Lostak"
Date:
Subject: Re: SELECT Question