<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Anvil Studios &#187; MySQL</title>
	<atom:link href="http://anvilstudios.co.za/blog/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://anvilstudios.co.za/blog</link>
	<description>web development</description>
	<lastBuildDate>Wed, 16 May 2012 14:52:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Alter a foreign key in mySQL</title>
		<link>http://anvilstudios.co.za/blog/mysql/alter-a-foreign-key-in-mysql/</link>
		<comments>http://anvilstudios.co.za/blog/mysql/alter-a-foreign-key-in-mysql/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 09:44:00 +0000</pubDate>
		<dc:creator>Gerrit</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[alter]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=1103</guid>
		<description><![CDATA[I recently came across a situation where the foreign key was incorrectly defined in a table I was working with and I had to figure out how to redefine it&#8230; Lets say we have a table Owners and Pets. Now Pets are linked to Owners via a foreign key owners_id or something similar. The foreign [...]]]></description>
		<wfw:commentRss>http://anvilstudios.co.za/blog/mysql/alter-a-foreign-key-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data from multiple rows in 1 column</title>
		<link>http://anvilstudios.co.za/blog/mysql/data-from-multiple-rows-in-1-column/</link>
		<comments>http://anvilstudios.co.za/blog/mysql/data-from-multiple-rows-in-1-column/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 10:56:07 +0000</pubDate>
		<dc:creator>Deon</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[GROUP_CONCAT]]></category>

		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=1047</guid>
		<description><![CDATA[I was building database tables for a project and came across a problem that I&#8217;ve tried to ignore in the past: When I have a main table, a second table, and a table linking the two, and the link-table can link a single record in the main table with multiple records in the second table, [...]]]></description>
		<wfw:commentRss>http://anvilstudios.co.za/blog/mysql/data-from-multiple-rows-in-1-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL copy data from one database to another</title>
		<link>http://anvilstudios.co.za/blog/mysql/mysql-copy-data-from-one-database-to-another/</link>
		<comments>http://anvilstudios.co.za/blog/mysql/mysql-copy-data-from-one-database-to-another/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 13:48:56 +0000</pubDate>
		<dc:creator>Nico</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=622</guid>
		<description><![CDATA[Let me show you how to copy data from one database to another in MySQL. First of all, you must be sure that you have the rights on both databases, with the user/connection you are currently logged in as. As soon as you have that, its really quite easy: There are probably different ways to [...]]]></description>
		<wfw:commentRss>http://anvilstudios.co.za/blog/mysql/mysql-copy-data-from-one-database-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Select the rows holding the maximum of a certain column</title>
		<link>http://anvilstudios.co.za/blog/mysql/select-the-rows-holding-the-maximum-of-a-certain-column/</link>
		<comments>http://anvilstudios.co.za/blog/mysql/select-the-rows-holding-the-maximum-of-a-certain-column/#comments</comments>
		<pubDate>Tue, 25 May 2010 13:53:42 +0000</pubDate>
		<dc:creator>Gerrit</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=522</guid>
		<description><![CDATA[Lets say you have a table containing comments on your blog posts or articles and you want to select the latest comment made on each article, how would you do it? This is a fairly common request. I wanted to do this in a single query. If it was possible to sort by the column [...]]]></description>
		<wfw:commentRss>http://anvilstudios.co.za/blog/mysql/select-the-rows-holding-the-maximum-of-a-certain-column/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A foreign key constraint fails</title>
		<link>http://anvilstudios.co.za/blog/mysql/a-foreign-key-constraint-fails/</link>
		<comments>http://anvilstudios.co.za/blog/mysql/a-foreign-key-constraint-fails/#comments</comments>
		<pubDate>Mon, 03 May 2010 13:16:01 +0000</pubDate>
		<dc:creator>Gerrit</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Foreign key constraint]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[MyISAM]]></category>

		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=448</guid>
		<description><![CDATA[Today I ran into this problem for the second time in three years&#8230; so it took me a while to figure out the solution (with the help of my trusty partners here in the office of course). It&#8217;s quite a common error message : SQL Error: 1452: Cannot add or update a child row: a [...]]]></description>
		<wfw:commentRss>http://anvilstudios.co.za/blog/mysql/a-foreign-key-constraint-fails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>InnoDB fulltext search with ranking</title>
		<link>http://anvilstudios.co.za/blog/mysql/innodb-fulltext-search-with-ranking/</link>
		<comments>http://anvilstudios.co.za/blog/mysql/innodb-fulltext-search-with-ranking/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 13:39:28 +0000</pubDate>
		<dc:creator>Abraham</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=14</guid>
		<description><![CDATA[According to the MySQL manual Full-text indexes can be used only with MyISAM tables I&#8217;m using an InnoDB table-type however, so had to look at other ways of implementing a full-text search that would give me rankings by relevance, to order the results by. It&#8217;s possible to do the ranking with PHP, by doing a [...]]]></description>
		<wfw:commentRss>http://anvilstudios.co.za/blog/mysql/innodb-fulltext-search-with-ranking/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Uncaught PDOException with SQLSTATE[HY000]</title>
		<link>http://anvilstudios.co.za/blog/mysql/pdoexception-hy000/</link>
		<comments>http://anvilstudios.co.za/blog/mysql/pdoexception-hy000/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 22:27:47 +0000</pubDate>
		<dc:creator>Abraham</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PDO]]></category>
		<category><![CDATA[PDOException]]></category>

		<guid isPermaLink="false">http://anvilstudios.co.za/blog/?p=8</guid>
		<description><![CDATA[Problem: I was setting up a database query using a PDOStatement, by looping through an array of values and binding each parameter seperately. But on executing the query, I got the following error: Fatal error: Uncaught exception &#8216;PDOException&#8217; with message &#8216;SQLSTATE[HY000]: General error: 1452 Cannot add or update a child row: a foreign key constraint [...]]]></description>
		<wfw:commentRss>http://anvilstudios.co.za/blog/mysql/pdoexception-hy000/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

