<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: `;`.`*`.`.` is a valid column name</title>
	<atom:link href="http://code.openark.org/blog/mysql/is-a-valid-column-name/feed" rel="self" type="application/rss+xml" />
	<link>http://code.openark.org/blog/mysql/is-a-valid-column-name</link>
	<description>Blog by Shlomi Noach</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:47:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: themattreid</title>
		<link>http://code.openark.org/blog/mysql/is-a-valid-column-name/comment-page-1#comment-862</link>
		<dc:creator>themattreid</dc:creator>
		<pubDate>Sat, 28 Feb 2009 06:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=502#comment-862</guid>
		<description>Those are valid names, but are a total hassle to deal with when writing automation scripts and general day to day DBA duties. Having to always escape table/schema names is annoying at best, and time consuming as well. 

I prefer to tell my clients to follow some basic naming convention rules: stay away from special characters like $,%,^,#,&amp;,*,; and so forth. In addition, using a dash &quot;-&quot; in names is possible, but an underscore &quot;_&quot; is preferred. 

Just because we can do things doesn&#039;t always mean we should :)

Nice write up though, I think a lot of people forget or just never learned about the back tick escapes in MySQL.</description>
		<content:encoded><![CDATA[<p>Those are valid names, but are a total hassle to deal with when writing automation scripts and general day to day DBA duties. Having to always escape table/schema names is annoying at best, and time consuming as well. </p>
<p>I prefer to tell my clients to follow some basic naming convention rules: stay away from special characters like $,%,^,#,&amp;,*,; and so forth. In addition, using a dash "-" in names is possible, but an underscore "_" is preferred. </p>
<p>Just because we can do things doesn't always mean we should <img src='http://code.openark.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Nice write up though, I think a lot of people forget or just never learned about the back tick escapes in MySQL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shlomi</title>
		<link>http://code.openark.org/blog/mysql/is-a-valid-column-name/comment-page-1#comment-637</link>
		<dc:creator>shlomi</dc:creator>
		<pubDate>Thu, 12 Feb 2009 16:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=502#comment-637</guid>
		<description>@Zilivinas - thanks for the link!

@sergei - thanks, also fixed comment&#039;s HTML issues.</description>
		<content:encoded><![CDATA[<p>@Zilivinas - thanks for the link!</p>
<p>@sergei - thanks, also fixed comment's HTML issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergei Golubchik</title>
		<link>http://code.openark.org/blog/mysql/is-a-valid-column-name/comment-page-1#comment-635</link>
		<dc:creator>Sergei Golubchik</dc:creator>
		<pubDate>Thu, 12 Feb 2009 15:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=502#comment-635</guid>
		<description>fine, thanks HTML markup :)

http://pastebin.com/m29081b3d</description>
		<content:encoded><![CDATA[<p>fine, thanks HTML markup <img src='http://code.openark.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://pastebin.com/m29081b3d" rel="nofollow">http://pastebin.com/m29081b3d</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergei Golubchik</title>
		<link>http://code.openark.org/blog/mysql/is-a-valid-column-name/comment-page-1#comment-634</link>
		<dc:creator>Sergei Golubchik</dc:creator>
		<pubDate>Thu, 12 Feb 2009 15:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=502#comment-634</guid>
		<description>Two comments:

1. In 5.1 table names are converted to a safe representation, you won&#039;t see these dangerous characters in a filename there.

2. All these characters are actually allowed in identifiers by the standard, MySQL must support all them. In a delimited identifier one can have *any* character:

      &lt;delimited identifier&gt; ::= &lt;double quote&gt; &lt;delimited identifier body&gt; &lt;double quote&gt;
      &lt;delimited identifier body&gt; ::= &lt;delimited identifier part&gt;...
      &lt;delimited identifier part&gt; ::=
          &lt;nondoublequote character&gt;
        &#124; &lt;doublequote symbol&gt;
      &lt;doublequote symbol&gt; ::= &quot;&quot; !! two consecutive double quote characters
      ...
      6) A &lt;nondoublequote character&gt; is any character of the source language character set other than a &lt;double
         quote&gt;.</description>
		<content:encoded><![CDATA[<p>Two comments:</p>
<p>1. In 5.1 table names are converted to a safe representation, you won't see these dangerous characters in a filename there.</p>
<p>2. All these characters are actually allowed in identifiers by the standard, MySQL must support all them. In a delimited identifier one can have *any* character:</p>
<p>      &lt;delimited identifier&gt; ::= &lt;double quote&gt; &lt;delimited identifier body&gt; &lt;double quote&gt;<br />
      &lt;delimited identifier body&gt; ::= &lt;delimited identifier part&gt;...<br />
      &lt;delimited identifier part&gt; ::=<br />
          &lt;nondoublequote character&gt;<br />
        | &lt;doublequote symbol&gt;<br />
      &lt;doublequote symbol&gt; ::= "" !! two consecutive double quote characters<br />
      ...<br />
      6) A &lt;nondoublequote character&gt; is any character of the source language character set other than a &lt;double<br />
         quote&gt;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zilvinas</title>
		<link>http://code.openark.org/blog/mysql/is-a-valid-column-name/comment-page-1#comment-633</link>
		<dc:creator>Zilvinas</dc:creator>
		<pubDate>Thu, 12 Feb 2009 15:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=502#comment-633</guid>
		<description>Nice insights there. I think you will find this link interesting: http://dev.mysql.com/doc/refman/5.1/en/identifier-mapping.html</description>
		<content:encoded><![CDATA[<p>Nice insights there. I think you will find this link interesting: <a href="http://dev.mysql.com/doc/refman/5.1/en/identifier-mapping.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/identifier-mapping.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

