<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>php - insert result set to different table in Webmasters and Developers</title>
<link>http://www.dslreports.com/forum/r21502284</link>
<description></description>
<language>en</language>
<pubDate>Sat, 05 Dec 2009 21:30:15 EDT</pubDate>
<lastBuildDate>Sat, 05 Dec 2009 21:30:15 EDT</lastBuildDate>

<item>
<title>Re: php - insert result set to different table</title>
<link>http://www.dslreports.com/forum/remark,21508486</link>
<description><![CDATA[<A HREF="/useremail/u/246096"><b>yock</b></A> : I should note too that the MySQL information in this post is for MySQL 5.1. If you're using a 4.x or 6.0 MySQL server, you may need to check on the variable names.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,21508486</guid>
<pubDate>Mon, 01 Dec 2008 10:57:20 EDT</pubDate>
</item>

<item>
<title>Re: php - insert result set to different table</title>
<link>http://www.dslreports.com/forum/remark,21508450</link>
<description><![CDATA[<A HREF="/useremail/u/246096"><b>yock</b></A> : MySQL supports bulk inserts by simply passing multiple data sets to the VALUES directive, like so:<br><textarea name="code" class="text" cols=50 rows=10>insert into field, field2, field3 values&#012;(val1, val2, val3),&#012;(val1, val2, val3),&#012;(val1, val2, val3),&#012;etc...&#012;;&#012;</textarea><!--end code block--><br>You'll need to pay attention to the value of one of two PHP configuration variables too. The variable 'upload_max_size' governs how much data PHP can send directly to a host, while 'post_max_size' governs how much data PHP will allow you to send via HTTP $_POST. If you're using HTTP to send this you'll want the latter, if you're connecting directly to the MySQL server then you want the fomer.<br><br>MySQL also has limits on how much data it can receive. If your inserts are failing and PHP isn't kicking back any errors, try increasing MySQL's 'max_allowed_packet'. You can do this via command line by issuing the command:<br><br>mysql --max_allowed_packet=24M<br><br>Where "24M" is the size in megabytes of the desired value.<br><br>One final note. Though MyISAM doesn't support foreign keys, it does support unique indexes. I'm not entirely sure this will help with MyISAM (it's listed as a performance consideration for InnoDB with bulk inserts) but disabling unique checks should speed you up too if you already know that the data folows your uniqueness rules.<br><br>To disable that, login to mysql in the command line and issue the following command:<br><br>SET unique_checks=0;<br><br>I hope this helps you get started.<br>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,21508450</guid>
<pubDate>Mon, 01 Dec 2008 10:51:36 EDT</pubDate>
</item>

<item>
<title>Re: php - insert result set to different table</title>
<link>http://www.dslreports.com/forum/remark,21508322</link>
<description><![CDATA[<A HREF="/useremail/u/448642"><b>Dersgniw</b></A> : MyISAM ]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,21508322</guid>
<pubDate>Mon, 01 Dec 2008 10:27:29 EDT</pubDate>
</item>

<item>
<title>Re: php - insert result set to different table</title>
<link>http://www.dslreports.com/forum/remark,21508199</link>
<description><![CDATA[<A HREF="/useremail/u/246096"><b>yock</b></A> : MyISAM or InnoDB?]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,21508199</guid>
<pubDate>Mon, 01 Dec 2008 10:02:02 EDT</pubDate>
</item>

<item>
<title>Re: php - insert result set to different table</title>
<link>http://www.dslreports.com/forum/remark,21508168</link>
<description><![CDATA[<A HREF="/useremail/u/448642"><b>Dersgniw</b></A> : <div class="bquote"><small>said by  GILXA1226 <A HREF="/useremail/u/274243"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A> :</small><br><br>What are you using for a database engine?<br> </div>MySql<br><small>--<br><b><A HREF="/forum/disco">I Smell Cures!</a> -- <A HREF="http://tdprojecthope.com">Our Hope</a></b></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,21508168</guid>
<pubDate>Mon, 01 Dec 2008 09:56:55 EDT</pubDate>
</item>

<item>
<title>Re: php - insert result set to different table</title>
<link>http://www.dslreports.com/forum/remark,21502706</link>
<description><![CDATA[<A HREF="/useremail/u/274243"><b>GILXA1226</b></A> : What are you using for a database engine?]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,21502706</guid>
<pubDate>Sat, 29 Nov 2008 22:43:59 EDT</pubDate>
</item>

<item>
<title>php - insert result set to different table</title>
<link>http://www.dslreports.com/forum/remark,21502284</link>
<description><![CDATA[<A HREF="/useremail/u/448642"><b>Dersgniw</b></A> : I have 2 tables, in 2 databases.  <br><br>I want to select data from table AA (on DB 1), then insert that to a temporary table B  (on DB 2).  Since they are in different DB's, is there an easy way to do this?  I'm talking 10,000-20,000 rows so I'm just looking for some efficiency.<br><small>--<br><b><A HREF="/forum/disco">I Smell Cures!</a> -- <A HREF="http://tdprojecthope.com">Our Hope</a></b></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,21502284</guid>
<pubDate>Sat, 29 Nov 2008 20:38:38 EDT</pubDate>
</item>

</channel>
</rss>
