<?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>One day at a time &#187; mysql</title>
	<atom:link href="http://www.terencekwan.com/category/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.terencekwan.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 14 Mar 2010 18:28:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to do javascript subclassing</title>
		<link>http://www.terencekwan.com/how-to-do-javascript-subclassing</link>
		<comments>http://www.terencekwan.com/how-to-do-javascript-subclassing#comments</comments>
		<pubDate>Fri, 20 Mar 2009 08:03:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=71</guid>
		<description><![CDATA[http://www.golimojo.com/etc/js-subclass.html

function subclass(constructor, superConstructor)
{
function surrogateConstructor()
{
}
surrogateConstructor.prototype = superConstructor.prototype;
var prototypeObject = new surrogateConstructor();
prototypeObject.constructor = constructor;
constructor.prototype = prototypeObject;
}

]]></description>
		<wfw:commentRss>http://www.terencekwan.com/how-to-do-javascript-subclassing/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>Find MYSQL Duplicate records</title>
		<link>http://www.terencekwan.com/find-mysql-duplicate-records</link>
		<comments>http://www.terencekwan.com/find-mysql-duplicate-records#comments</comments>
		<pubDate>Thu, 12 Mar 2009 03:45:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[interview question]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=57</guid>
		<description><![CDATA[
If the database has a table call employees. The values are:

ID           Name
1              a
2              b
3              a
4              c
5              b

You want to find the duplicate record but not the first one (ie, ID# 3 and 5). You can do the following:
select id from employees where id not in (select distinct id from employees group by name);
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/find-mysql-duplicate-records/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>How FriendFeed uses MySQL to store schema-less data</title>
		<link>http://www.terencekwan.com/how-friendfeed-uses-mysql-to-store-schema-less-data</link>
		<comments>http://www.terencekwan.com/how-friendfeed-uses-mysql-to-store-schema-less-data#comments</comments>
		<pubDate>Mon, 02 Mar 2009 20:44:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=40</guid>
		<description><![CDATA[Here is a posting about how FriendFeed uses MySQL to store the Json object. Then it creates separate table for each meta field to store the meta data. I use similar method to store all the static data (for example, order payment and transaction information). This method is good for data which is relatively stable.
http://bret.appspot.com/entry/how-friendfeed-uses-mysql
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/how-friendfeed-uses-mysql-to-store-schema-less-data/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>mysql output csv file</title>
		<link>http://www.terencekwan.com/mysql-output-csv-file</link>
		<comments>http://www.terencekwan.com/mysql-output-csv-file#comments</comments>
		<pubDate>Fri, 17 Oct 2008 22:03:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=19</guid>
		<description><![CDATA[Here is the code to output result to csv file.
SELECT order_id,product_name,qty
FROM orders
INTO OUTFILE '/tmp/orders.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/mysql-output-csv-file/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
	</channel>
</rss>
