<?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>Webmaster Sucks &#187; unique email</title>
	<atom:link href="http://www.webmastersucks.com/tags/unique-email/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmastersucks.com</link>
	<description>Here I share stuff I used to suck at as a novice webmaster..</description>
	<lastBuildDate>Tue, 11 May 2010 10:56:35 +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>Unique Email Address in Mysql</title>
		<link>http://www.webmastersucks.com/unique-email-address-in-mysql/</link>
		<comments>http://www.webmastersucks.com/unique-email-address-in-mysql/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 12:59:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[dublicate email]]></category>
		<category><![CDATA[dublicate email mysql]]></category>
		<category><![CDATA[email mysql]]></category>
		<category><![CDATA[unique email]]></category>
		<category><![CDATA[unique email mysql]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=256</guid>
		<description><![CDATA[
			
				
			
		
I have a big mail database but there are some dublicate email addresses. I need unique email address lists and i follow this way;
Firstly i create temporary table for unique email address
CREATE  TABLE  mail_temp (  `email` varchar( 255  )  NOT  NULL default  ''

) ENGINE  =  MyISAM;

After i add unique email address to that temp table
INSERT [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Funique-email-address-in-mysql%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Funique-email-address-in-mysql%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I have a big mail database but there are some dublicate email addresses. I need unique email address lists and i follow this way;</p>
<p><strong>Firstly i create temporary table for unique email address</strong></p>
<pre class="brush: plain;">CREATE  TABLE  mail_temp (  `email` varchar( 255  )  NOT  NULL default  ''

) ENGINE  =  MyISAM;
</pre>
<p><strong>After i add unique email address to that temp table</strong></p>
<pre class="brush: plain;">INSERT INTO mail_temp SELECT DISTINCT(email) FROM mail_table</pre>
<p><strong>I dropped my real email table</strong></p>
<pre class="brush: plain;">DROP TABLE mail_table;</pre>
<p><strong>After all, i create new mail table and moved the temporary mail table to in.</strong></p>
<pre class="brush: plain;">
CREATE TABLE mail_table( `email` varchar( 255 ) NOT NULL default ''
) ENGINE  = MyISAM;

INSERT INTO mail_table SELECT  DISTINCT(email) FROM mail_temp;

DROP TABLE mail_temp;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/unique-email-address-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
