Re: OT: MySQL - need auto increment back to 0...

2007-05-13 Thread Robertson-Ravo, Neil (RX)
Search for reseed + identity column + MySQL.





"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-Original Message-
From: Will Tomlinson
To: CF-Talk
Sent: Sun May 13 14:22:57 2007
Subject: OT: MySQL - need auto increment back to 0...

Did some googlin' on this and didnt come up with much. 

I have an auto increment ID in a MySQL table. Let's say 10,000 are inserted.


Then you delete those 10,000. 

You add another and the auto increment sets the id at 10001. 

How can I get that table to start back to 0? I'm testing with a lot of
records and don't want the ID's to keep piling up. 

Thanks,
Will



~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277967
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


OT: MySQL - need auto increment back to 0...

2007-05-13 Thread Will Tomlinson
Did some googlin' on this and didnt come up with much. 

I have an auto increment ID in a MySQL table. Let's say 10,000 are inserted. 

Then you delete those 10,000. 

You add another and the auto increment sets the id at 10001. 

How can I get that table to start back to 0? I'm testing with a lot of records 
and don't want the ID's to keep piling up. 

Thanks,
Will

~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277964
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4