<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://sqlzoo.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://sqlzoo.net/w/index.php?title=CREATE_TABLE_problems:_Invalid_column_name.&amp;feed=atom&amp;action=history</id>
		<title>CREATE TABLE problems: Invalid column name. - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://sqlzoo.net/w/index.php?title=CREATE_TABLE_problems:_Invalid_column_name.&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=CREATE_TABLE_problems:_Invalid_column_name.&amp;action=history"/>
		<updated>2013-05-19T14:51:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.4</generator>

	<entry>
		<id>http://sqlzoo.net/w/index.php?title=CREATE_TABLE_problems:_Invalid_column_name.&amp;diff=1424&amp;oldid=prev</id>
		<title>Marek: Created page with &quot;CREATE TABLE problems: Invalid column name. &lt;div class='ht'&gt; &lt;div class=params&gt;schema:scott&lt;/div&gt; &lt;div&gt; &lt;p&gt;You may not use a reserved word as the name of a field.   Many popul...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=CREATE_TABLE_problems:_Invalid_column_name.&amp;diff=1424&amp;oldid=prev"/>
				<updated>2012-07-17T09:12:10Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;CREATE TABLE problems: Invalid column name. &amp;lt;div class=&amp;#039;ht&amp;#039;&amp;gt; &amp;lt;div class=params&amp;gt;schema:scott&amp;lt;/div&amp;gt; &amp;lt;div&amp;gt; &amp;lt;p&amp;gt;You may not use a reserved word as the name of a field.   Many popul...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;CREATE TABLE problems: Invalid column name.&lt;br /&gt;
&amp;lt;div class='ht'&amp;gt;&lt;br /&gt;
&amp;lt;div class=params&amp;gt;schema:scott&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;You may not use a reserved word as the name of a field.&lt;br /&gt;
  Many popular words are used by the system; some words to avoid...&amp;lt;br/&amp;gt;&amp;lt;tt&amp;gt;date, day, index, number, order, size, year&amp;lt;/tt&amp;gt;&amp;lt;/p&amp;gt;[http://developer.mimer.se/validator/sql-reserved-words.tml SQL Reserved words]&amp;lt;p&amp;gt;Having a &amp;quot;house-rule&amp;quot; can prevent such problems. Some developers&lt;br /&gt;
insist that field names begin with fld for example fldSurname.&lt;br /&gt;
Most of us have enough meaningless junk in their lives already; we&lt;br /&gt;
don't need this kind of self imposed tyranny.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=sql class='tidy'&amp;gt;DROP TABLE t_wrong&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=sql class='setup'&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-sqlserver'&amp;gt;CREATE TABLE t_wrong (when DATETIME)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-access'&amp;gt;CREATE TABLE t_wrong ([date] DATE)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def'&amp;gt;CREATE TABLE t_wrong (date DATE)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-mysql&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;You can get away with many of these in MySQL; don't do that!&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-access&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;Field names with spaces are permitted. You can use&lt;br /&gt;
  square brackets to get away with odd field names; don't do that!&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-postgres&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;Some reserved words cause a parse error.&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-oracle&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;You may not use DATE or SIZE or INDEX or NUMBER or ORDER or SIZE&lt;br /&gt;
as a field name.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{CREATE and DROP ref}}&lt;/div&gt;</summary>
		<author><name>Marek</name></author>	</entry>

	</feed>