<?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>uRaNGaTaNG &#187; variables</title>
	<atom:link href="http://www.rngtng.com/tag/variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rngtng.com</link>
	<description>Featuring Ruby, Rails, Web development, Arduino, Processing, Nabaztag and more...</description>
	<lastBuildDate>Thu, 12 Jan 2012 10:08:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.rngtng.com/?pushpress=hub'/>
		<item>
		<title>MySQL User defined Variables &#8211; good thing to know!</title>
		<link>http://www.rngtng.com/2009/04/02/mysql-user-defined-variables-good-thing-to-know/</link>
		<comments>http://www.rngtng.com/2009/04/02/mysql-user-defined-variables-good-thing-to-know/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 12:59:54 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Happy Hacking]]></category>
		<category><![CDATA[hint]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[user defined]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=121</guid>
		<description><![CDATA[ Have you ever heard of user defined variables in MySQL? I hadn't and nearly freaked out when I found out. That's the thing I was always looking for, that's so cool, and fasten up your SQL live a lot!
Now, renumbering a table is as easy as never before:



Check out the docu and examples:
http://dev.mysql.com/doc/refman/5.0/en/user-variables.html]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom:20px"><img class="alignright" style="margin: 18px" src="http://matsu.files.wordpress.com/2008/01/mysql-logo.png" alt="" width="140" height="72" /> Have you ever heard of user defined variables in MySQL? I hadn&#8217;t and nearly freaked out when I found out. That&#8217;s the thing I was always looking for, that&#8217;s so cool, and fasten up your SQL live a lot!</p>
<p style="text-align: left">Now, renumbering a table is as easy as never before:</p>
<pre class="brush: plain; title: ; notranslate">
Set @a = 0;
UPDATE my_table SET id=@a:=@a+1
</pre>
<p>Check out the docu and examples:</p>
<p><a href="http://dev.mysql.com/doc/refman/5.0/en/user-variables.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/user-variables.html</a></p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/04/02/mysql-user-defined-variables-good-thing-to-know/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

