<?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>The Blog of Angelo &#187; MySQL</title>
	<atom:link href="http://angelo.mandato.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://angelo.mandato.com</link>
	<description>where logic becomes print</description>
	<lastBuildDate>Mon, 31 Oct 2011 16:12:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Converting URL to Local File Path in Batch MySQL INSERT Query Using SUBSTRING_INDEX() and CONCAT()</title>
		<link>http://angelo.mandato.com/2009/01/05/converting-url-to-local-file-path-in-batch-mysql-insert-query-using-substring_index-and-concat/</link>
		<comments>http://angelo.mandato.com/2009/01/05/converting-url-to-local-file-path-in-batch-mysql-insert-query-using-substring_index-and-concat/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 21:28:46 +0000</pubDate>
		<dc:creator>Angelo</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[concat]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[insert from select]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[substring_index]]></category>

		<guid isPermaLink="false">http://www.compiledweekly.com/?p=114</guid>
		<description><![CDATA[I wanted to quickly take a URL (e.g. http://www.compiledweekly.com/somefolder/somefile.ext) and translate it to the local path (e.g. /home/user/public_html/somefolder/somefile.ext) while inserting multiple records into a new table. My first thought was to select all the records, use PHP to trim off the path, then insert the new record in the new table. There&#8217;s a better answer, [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to quickly take a URL (e.g. http://www.compiledweekly.com/somefolder/somefile.ext) and translate it to the local path (e.g. /home/user/public_html/somefolder/somefile.ext) while inserting multiple records into a new table. My first thought was to select all the records, use PHP to trim off the path, then insert the new record in the new table. There&#8217;s a better answer, use SUBSTRING_INDEX() and CONCAT() with a INSERT INTO table SELECT statement.</p>
<p style="padding-left: 30px;">INSERT INTO new_table<br />
SELECT CONCAT(&#8216;/home/user/public_html/somefolder/&#8217;, SUBSTRING_INDEX(s.url, &#8216;/&#8217;, -1)) AS local_path<br />
FROM source_table AS s<br />
WHERE &#8230;</p>
<p>It does the job with out having to write a single line of PHP code!</p>
]]></content:encoded>
			<wfw:commentRss>http://angelo.mandato.com/2009/01/05/converting-url-to-local-file-path-in-batch-mysql-insert-query-using-substring_index-and-concat/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sun acquires MySQL</title>
		<link>http://angelo.mandato.com/2008/01/28/sun-acquires-mysql/</link>
		<comments>http://angelo.mandato.com/2008/01/28/sun-acquires-mysql/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 22:20:42 +0000</pubDate>
		<dc:creator>Angelo</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[falcon]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[innodb]]></category>
		<category><![CDATA[myisam]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[storage engine]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.compiledweekly.com/2008/01/28/sun-acquires-mysql/</guid>
		<description><![CDATA[If you have not herd, Sun Microsystems is acquiring MySQL. I think this is a great move, especially since Sun has embraced the open source community as strong, if not stronger, than other large companies such as IBM, Yahoo and Google. Article: http://www.mysql.com/news-and-events/sun-to-acquire-mysql.html I think the move is a good one for MySQL. With the [...]]]></description>
			<content:encoded><![CDATA[<p>If you have not herd, Sun Microsystems is acquiring MySQL. I think this is a great move, especially since Sun has embraced the open source community as strong, if not stronger, than other large companies such as IBM, Yahoo and Google.</p>
<p>Article: <a href="http://www.mysql.com/news-and-events/sun-to-acquire-mysql.html" title="Sun to Acquire MySQL" target="_blank">http://www.mysql.com/news-and-events/sun-to-acquire-mysql.html</a></p>
<p>I think the move is a good one for MySQL. With the recent purchase of the InnoDB storage engine by Oracle, there has been some concern that MySQL could end up in the hands of a company that&#8217;s best interests do not involve the open source community.</p>
<p>The recent influx of <a href="http://mysqldbnews.blogspot.com/2007/10/google-contributes-to-mysql.html" title="Google Contributes to MySQL" target="_blank">participation in the development of MySQL by Google</a> gives me a lot of hope that MySQL&#8217;s future will be a bright one. The next generation storage engine called <a href="http://dev.mysql.com/doc/refman/6.0/en/se-falcon.html" title="Falcon storage engine for MySQL" target="_blank">Falcon</a> hopes to become a replacement for InnoDB and many of the performance tweaks Google has implemented over the years will most likely find their way into the future versions of MySQL.</p>
]]></content:encoded>
			<wfw:commentRss>http://angelo.mandato.com/2008/01/28/sun-acquires-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

