<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Copy an existing MySQL table to a new table</title>
	<atom:link href="http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sun, 22 Nov 2009 00:56:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: intuited</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-14863</link>
		<dc:creator>intuited</dc:creator>
		<pubDate>Tue, 08 Sep 2009 02:16:23 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14863</guid>
		<description>yeah the single-line command is a bad scene.  Even the two-line command will have issues in some cases, eg if you have foreign key restraints or are inserting rows with autoincrement keys that equal 0 (they get incremented to 1).  I wrapped the statements in code used by mysqldump.&lt;br&gt;Also doing a mysqldump, replacing the table names in the statements, and then loading the resulting dump is another way to do this.  It&#039;s actually probably more robust than doing it with insert..select, but will be slower and a bit tricky.</description>
		<content:encoded><![CDATA[<p>yeah the single-line command is a bad scene.  Even the two-line command will have issues in some cases, eg if you have foreign key restraints or are inserting rows with autoincrement keys that equal 0 (they get incremented to 1).  I wrapped the statements in code used by mysqldump.<br />Also doing a mysqldump, replacing the table names in the statements, and then loading the resulting dump is another way to do this.  It&#39;s actually probably more robust than doing it with insert..select, but will be slower and a bit tricky.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: viralpatel</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-14728</link>
		<dc:creator>viralpatel</dc:creator>
		<pubDate>Tue, 01 Sep 2009 19:42:18 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14728</guid>
		<description>It creates a duplicate table but does not copy the constraints and other meta details of a table</description>
		<content:encoded><![CDATA[<p>It creates a duplicate table but does not copy the constraints and other meta details of a table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soodvarun</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-14610</link>
		<dc:creator>soodvarun</dc:creator>
		<pubDate>Fri, 28 Aug 2009 11:08:44 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14610</guid>
		<description>I was just looking for this!&lt;br&gt;thanks</description>
		<content:encoded><![CDATA[<p>I was just looking for this!<br />thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryonbean</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-14320</link>
		<dc:creator>bryonbean</dc:creator>
		<pubDate>Mon, 17 Aug 2009 06:55:46 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14320</guid>
		<description>This could also be done in one step with the following:&lt;br&gt;&lt;br&gt;   create table recipies_new select * from production.recipies;&lt;br&gt;&lt;br&gt;I&#039;m using MySQL 5.1</description>
		<content:encoded><![CDATA[<p>This could also be done in one step with the following:</p>
<p>   create table recipies_new select * from production.recipies;</p>
<p>I&#39;m using MySQL 5.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Name</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-14262</link>
		<dc:creator>Name</dc:creator>
		<pubDate>Fri, 14 Aug 2009 13:58:08 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14262</guid>
		<description>The simplest solutions are the best. Thanks!</description>
		<content:encoded><![CDATA[<p>The simplest solutions are the best. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-13542</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Wed, 15 Jul 2009 23:30:15 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13542</guid>
		<description>Thanks a lot, this saved me a lot of time!</description>
		<content:encoded><![CDATA[<p>Thanks a lot, this saved me a lot of time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sleeping_Troll</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-13130</link>
		<dc:creator>Sleeping_Troll</dc:creator>
		<pubDate>Fri, 03 Jul 2009 20:27:28 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13130</guid>
		<description>Thx, just what I needed, with a little modification! Check it out it creates a clone of the database used for the public timelines for each user that logs in. &lt;a href=&quot;http://http;//orbzorbz.com&quot; rel=&quot;nofollow&quot;&gt;http;//orbzorbz.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thx, just what I needed, with a little modification! Check it out it creates a clone of the database used for the public timelines for each user that logs in. <a href="http://http;//orbzorbz.com" rel="nofollow">http;//orbzorbz.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gfhgf</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-12845</link>
		<dc:creator>gfhgf</dc:creator>
		<pubDate>Wed, 24 Jun 2009 07:54:03 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-12845</guid>
		<description>hgfhgfhgf</description>
		<content:encoded><![CDATA[<p>hgfhgfhgf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-10282</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 12 Apr 2009 18:18:56 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-10282</guid>
		<description>Very helpful! thank you :)</description>
		<content:encoded><![CDATA[<p>Very helpful! thank you :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/comment-page-1/#comment-9767</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 25 Mar 2009 19:50:53 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-9767</guid>
		<description>Exactly what I was looking for, Thanks!</description>
		<content:encoded><![CDATA[<p>Exactly what I was looking for, Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
