Forum Moderators: open

Message Too Old, No Replies

Reusing a Deleted ID#

         

galileo5

3:45 am on Nov 29, 2006 (gmt 0)

10+ Year Member



Good evening.

My database has skipped an ID# b/c I deleted an entry. Is there a way to reuse that deleted ID#?

If so, how?

Thank you.

phranque

4:10 am on Nov 29, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



greetings galileo5:

you didn't mention which db you are using, but it may be possible to explicitly set the id in the insert statement.

galileo5

12:19 am on Nov 30, 2006 (gmt 0)

10+ Year Member



I use mySQL.

Thanks.

justageek

1:24 am on Nov 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As phranque said you can just insert a record with the missing id.

JAG

phranque

1:35 am on Nov 30, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



it is certainly possible in mysql - i've done it myself...