RE: [PHP-DB] Access to MySQL Conversion question

From: Date: Thu, 18 Oct 2001 18:44:25 +0000
Subject: RE: [PHP-DB] Access to MySQL Conversion question
Groups: php.db 
Request: Send a blank email to php-db+get-13505@lists.php.net to get a copy of this message
Once it's loaded into MySQL: SELECT ID FROM mytable ORDER BY ID DESC LIMIT 1; This will provide the highest ID index. Set your new ID index in MySQL with the AUTO_INCREMENT attribute. This will automatically increment ID when a new record is added. -----Original Message----- From: Brad Harriger [mailto:bradharriger@clarionhospital.org] Sent: Thursday, October 18, 2001 1:32 PM To: php-db@lists.php.net Subject: [PHP-DB] Access to MySQL Conversion question I have several MS Access databases that I need to convert to MySQL. Each table is indexed on an ID field. How do I find the last index number in the existing table so that I can increment it for the next record that is added? Thanks, Brad -- 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 (#13505) next »