Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Reuse serial nu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3050 of 3175
Post > Topic >>

Reuse serial numbers?

by gentosaker@[EMAIL PROTECTED] ("A B") Mar 27, 2008 at 09:36 AM

Hello.
I have a table
create table TBL (a serial, b integer, c integer, unique(b,c));

so I for each combination of b,c get an unique number a.

Now, if the table is filled and I remove some rows, so there is a gap
in the a numbers. Is there a way to reuse the "free" serial numbers?

I don't feel like writing a script to select all numbers and do some
searching for free numbers.

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 3 Posts in Topic:
Reuse serial numbers?
gentosaker@[EMAIL PROTECT  2008-03-27 09:36:57 
Re: Reuse serial numbers?
andreas.kretschmer@[EMAIL  2008-03-27 10:49:06 
Re: Reuse serial numbers?
gentosaker@[EMAIL PROTECT  2008-03-27 10:17:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 20 4:22:20 CDT 2008.