php-general Digest 27 Jun 2013 21:16:30 - Issue 8280
Topics (messages 321496 through 321514):
Re: Reseting the auto-increment number in a MySQL database.
321496 by: Samuel Lopes Grigolato
321497 by: Stuart Dallas
321498 by: Tedd Sperling
321499 by: Jim Giner
321501 by: Tedd Sperling
321509 by: Matijn Woudt
321510 by: Jim Lucas
321512 by: Tedd Sperling
Last Record INSERT
321500 by: Tedd Sperling
321502 by: Tedd Sperling
321503 by: Stuart Dallas
321504 by: Tedd Sperling
321505 by: Stuart Dallas
321506 by: Samuel Lopes Grigolato
321507 by: Dan Munro
321508 by: Carsten Jensen
321511 by: Tedd Sperling
321513 by: Curtis Maurand
Migration of applications to PHP 5.4
321514 by: Forum
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
--
---BeginMessage---
You can try this: *ALTER TABLE tbl AUTO_INCREMENT = 100;*
*
*
*Source: *http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html
(never did it myself, though)
On Wed, Jun 26, 2013 at 2:07 PM, Tedd Sperling t...@sperling.com wrote:
Hi gang:
I have a client where their next auto-increment number just jumped from
2300 to 10 for reasons not understood. They want it set back.
Options such as dropping the primary key and rebuilding the index is NOT
possible -- this is a relational table thing.
So, is there a way (programmatically) to set the next number in an
auto-increment?
Something like:
alter table abc auto_increment = 2301;
Any ideas of why this happened?
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---End Message---
---BeginMessage---
On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote:
Hi gang:
I have a client where their next auto-increment number just jumped from 2300
to 10 for reasons not understood. They want it set back.
Options such as dropping the primary key and rebuilding the index is NOT
possible -- this is a relational table thing.
So, is there a way (programmatically) to set the next number in an
auto-increment?
Something like:
alter table abc auto_increment = 2301;
ALTER TABLE tbl AUTO_INCREMENT = 2301;
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
---End Message---
---BeginMessage---
On Jun 26, 2013, at 1:13 PM, Stuart Dallas stu...@3ft9.com wrote:
On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote:
Hi gang:
I have a client where their next auto-increment number just jumped from 2300
to 10 for reasons not understood. They want it set back.
Options such as dropping the primary key and rebuilding the index is NOT
possible -- this is a relational table thing.
So, is there a way (programmatically) to set the next number in an
auto-increment?
Something like:
alter table abc auto_increment = 2301;
ALTER TABLE tbl AUTO_INCREMENT = 2301;
-Stuart
Thanks -- I needed confirmation on that.
It is something that i don't want to do.
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
---End Message---
---BeginMessage---
On 6/26/2013 1:30 PM, Tedd Sperling wrote:
On Jun 26, 2013, at 1:13 PM, Stuart Dallas stu...@3ft9.com wrote:
On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote:
Hi gang:
I have a client where their next auto-increment number just jumped from 2300 to
10 for reasons not understood. They want it set back.
Options such as dropping the primary key and rebuilding the index is NOT
possible -- this is a relational table thing.
So, is there a way (programmatically) to set the next number in an
auto-increment?
Something like:
alter table abc auto_increment = 2301;
ALTER TABLE tbl AUTO_INCREMENT = 2301;
-Stuart
Thanks -- I needed confirmation on that.
It is something that i don't want to do.
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
But more importantly - don't you need to figure out why it happened??
As well as correcting any inserts with the bogus id?
---End Message---
---BeginMessage---
On Jun 26, 2013, at 1:32 PM, Jim Giner jim.gi...@albanyhandball.com wrote:
But more importantly - don't you need to figure out why it happened?? As
well as correcting any inserts with the bogus id?
Yes, I would like to know -- I'm open for suggestions.
Cheers,
tedd
_
tedd.sperl...@gmail.com
http://sperling.com
---End Message---
---BeginMessage---
On Wed, Jun 26, 2013 at 7:35 PM, Tedd Sperling tedd.sperl...@gmail.comwrote:
On Jun 26, 2013,