Re: Autoincrement Question

From: Date: Thu, 10 May 2001 18:40:13 +0000
Subject: Re: Autoincrement Question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9223@lists.php.net to get a copy of this message
Jeff, That depends - I'm assuming this is a MySql database because of "auto_increment". If the table is declared with "type = MYISAM" when you add the other record the auto_increment number will be 4. If not it will be 3. This is important if you are using the field which is auto_increment (ed) as a foreign key. Check your MySQL docs just to confirm this. Cheers - Miles At 01:20 PM 5/10/01 -0500, Angie Tollerson wrote:
I will be 3 Jeff :)
"Jeff Oien" <jeff@webdesigns1.com> 05/10/01 01:13PM >>>
If I have a database that has three records and I delete the entire third record, when another record is then added will the auto_increment number be 3 or 4? Thanks. Jeff Oien -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.db (#9223) next »