Re: what is better way to write the query
| From: | Shafiq Rehman | Date: | Mon, 05 Nov 2007 17:18:05 +0000 |
| Subject: | Re: what is better way to write the query | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264065@lists.php.net to get a copy of this message | ||
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@gmail.com> wrote:
>
> On Nov 2, 2007 10:41 AM, afan pasalic <afan@afan.net> 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