RE: [PHP-DB] returning inserted ids using "load data local infile"
| From: | Bastien Koert | Date: | Thu, 28 Oct 2004 15:15:00 +0000 |
| Subject: | RE: [PHP-DB] returning inserted ids using "load data local infile" | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37070@lists.php.net to get a copy of this message | ||
For bulk loads, its proably best to query the db for the max id number before the load starts and then do the same after...
last_insert_id only returns the last inserted id....
Bastien
From: blackwater dev <blackwaterdev@gmail.com> Reply-To: blackwater dev <blackwaterdev@gmail.com> To: php-db@lists.php.net Subject: [PHP-DB] returning inserted ids using "load data local infile" Date: Thu, 28 Oct 2004 09:27:21 -0400 Is there anyway to get an array of the inserted id's generated when I load data into mysql using an external data file??? Thanks! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php