Hi guys,
I'm pretty much a new user of MySQL, up to now I got to introduce, update, delete and read data from a database...
I ask you guys for some help with IDs. What are they exactly? are they just the sorting method used by default? In my case ID is set to auto_increment by default and when one row is erased the next introduced, instead of using the just released ID, gets a new one. Is there anyway for giving this ID that has been released to the new rows?
This may sound strange since one can sort the content by the different fields easily therefore it doesn't matter whether this ID is reused or not, but the thing is that in my case i need to give a unique number since this number somehow has to be transformed into a IP address so I can easily run out of IP addresses.
thank you in advance guys,
kitus
I'm pretty much a new user of MySQL, up to now I got to introduce, update, delete and read data from a database...
I ask you guys for some help with IDs. What are they exactly? are they just the sorting method used by default? In my case ID is set to auto_increment by default and when one row is erased the next introduced, instead of using the just released ID, gets a new one. Is there anyway for giving this ID that has been released to the new rows?
This may sound strange since one can sort the content by the different fields easily therefore it doesn't matter whether this ID is reused or not, but the thing is that in my case i need to give a unique number since this number somehow has to be transformed into a IP address so I can easily run out of IP addresses.
thank you in advance guys,
kitus