Re: what is better way to write the query

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

 



Hi,

If possible, write your inserts queries in a text file and use LOAD DATA for
bulk inserts.

-- 
Keep Smiling
Shafiq Rehman (ZCE)
http://www.phpgurru.com | http://shafiq.pk
Cell: +92 300 423 9385

On 11/2/07, Andrew Ballard <aballard@xxxxxxxxx> wrote:
>
> On Nov 2, 2007 10:41 AM, afan pasalic <afan@xxxxxxxx> wrote:
> > ...is there any suggestion for the process of inserting up to 5K records
> at
> > the time ...
>
> Is it possible to save your data to a text file and then use one of
> MySQL's built-in import queries? (I know in some situations it isn't
> an option because the PHP server and the MySQL server are not able to
> read from a common location.)
>
> Andrew
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Keep Smiling
Shafiq Rehman (ZCE)
http://www.phpgurru.com | http://shafiq.pk
Cell: +92 300 423 9385

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux