RE: [PHP] Dealing with auto-increment in MySQL
| From: | Bastien Koert | Date: | Tue, 04 Sep 2007 15:36:14 +0000 |
| Subject: | RE: [PHP] Dealing with auto-increment in MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261687@lists.php.net to get a copy of this message | ||
I just let it go...there is no need to manage that process or you'll just screw up the mysql...
it shouldn't be relied on for anything other that uniqueness any way
bastien
> Date: Mon, 3 Sep 2007 23:53:22 -0400> From: sf@stevefink.net> To:
> php-general@lists.php.net> Subject: [PHP] Dealing with auto-increment in MySQL> >
> How're you folks dealing with records that are auto incremented in MySQL> after a delete is
> made? I've noticed the only way to get a sequential order> back is to truncate the table
> completely.> > Do you use logic in your code to find a missing ID and insert new records>
> based on that? Or do you just ignore it, let mysql handle the numbering and> go on with your
> lives?> > Just curious.> > Thanks!> > - sf
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline