RE: returning inserted ids using "load data local infile"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Reply-To: blackwater dev <blackwaterdev@xxxxxxxxx>
To: php-db@xxxxxxxxxxxxx
Subject:  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


-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux