<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.sqlzoo.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.sqlzoo.net/w/index.php?title=ALTER&amp;feed=atom&amp;action=history</id>
		<title>ALTER - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.sqlzoo.net/w/index.php?title=ALTER&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.sqlzoo.net/w/index.php?title=ALTER&amp;action=history"/>
		<updated>2013-05-24T08:10:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.4</generator>

	<entry>
		<id>http://www.sqlzoo.net/w/index.php?title=ALTER&amp;diff=13166&amp;oldid=prev</id>
		<title>Andr3w: Undo revision 13160 by 180.211.64.153 (talk)</title>
		<link rel="alternate" type="text/html" href="http://www.sqlzoo.net/w/index.php?title=ALTER&amp;diff=13166&amp;oldid=prev"/>
				<updated>2013-05-09T14:22:09Z</updated>
		
		<summary type="html">&lt;p&gt;Undo revision 13160 by &lt;a href=&quot;/wiki/Special:Contributions/180.211.64.153&quot; title=&quot;Special:Contributions/180.211.64.153&quot;&gt;180.211.64.153&lt;/a&gt; (&lt;a href=&quot;/w/index.php?title=User_talk:180.211.64.153&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:180.211.64.153 (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:22, 9 May 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[File:C:\Users\mn33894\Desktop\Subbu.jpeg]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;h1&amp;gt;ALTER TABLE&amp;lt;/h1&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;h1&amp;gt;ALTER TABLE&amp;lt;/h1&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;The table &amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt; shows the year and the city hosting the Olympic Games.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;The table &amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt; shows the year and the city hosting the Olympic Games.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andr3w</name></author>	</entry>

	<entry>
		<id>http://www.sqlzoo.net/w/index.php?title=ALTER&amp;diff=13160&amp;oldid=prev</id>
		<title>180.211.64.153 at 06:39, 9 May 2013</title>
		<link rel="alternate" type="text/html" href="http://www.sqlzoo.net/w/index.php?title=ALTER&amp;diff=13160&amp;oldid=prev"/>
				<updated>2013-05-09T06:39:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 06:39, 9 May 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[File:C:\Users\mn33894\Desktop\Subbu.jpeg]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;h1&amp;gt;ALTER TABLE&amp;lt;/h1&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;h1&amp;gt;ALTER TABLE&amp;lt;/h1&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;The table &amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt; shows the year and the city hosting the Olympic Games.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;The table &amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt; shows the year and the city hosting the Olympic Games.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>180.211.64.153</name></author>	</entry>

	<entry>
		<id>http://www.sqlzoo.net/w/index.php?title=ALTER&amp;diff=4015&amp;oldid=prev</id>
		<title>Peter at 15:57, 8 September 2012</title>
		<link rel="alternate" type="text/html" href="http://www.sqlzoo.net/w/index.php?title=ALTER&amp;diff=4015&amp;oldid=prev"/>
				<updated>2012-09-08T15:57:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:57, 8 September 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;li&amp;gt;[[DROP |DROP]]&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;lt;li&amp;gt;[[DROP |DROP]]&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{Languages}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Peter</name></author>	</entry>

	<entry>
		<id>http://www.sqlzoo.net/w/index.php?title=ALTER&amp;diff=1484&amp;oldid=prev</id>
		<title>Connor: Created page with &quot; &lt;h1&gt;ALTER TABLE&lt;/h1&gt; &lt;p&gt;The table &lt;code&gt;games&lt;/code&gt; shows the year and the city hosting the Olympic Games.&lt;/p&gt; &lt;table&gt; &lt;caption align='center'&gt;games&lt;/caption&gt; &lt;tr&gt;&lt;th align=...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.sqlzoo.net/w/index.php?title=ALTER&amp;diff=1484&amp;oldid=prev"/>
				<updated>2012-07-17T12:28:49Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;lt;h1&amp;gt;ALTER TABLE&amp;lt;/h1&amp;gt; &amp;lt;p&amp;gt;The table &amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt; shows the year and the city hosting the Olympic Games.&amp;lt;/p&amp;gt; &amp;lt;table&amp;gt; &amp;lt;caption align=&amp;#039;center&amp;#039;&amp;gt;games&amp;lt;/caption&amp;gt; &amp;lt;tr&amp;gt;&amp;lt;th align=...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;ALTER TABLE&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The table &amp;lt;code&amp;gt;games&amp;lt;/code&amp;gt; shows the year and the city hosting the Olympic Games.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;caption align='center'&amp;gt;games&amp;lt;/caption&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th align='center'&amp;gt;'''yr'''&amp;lt;/th&amp;gt;&amp;lt;th align='center'&amp;gt;'''city'''&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;2004&amp;lt;/td&amp;gt;&amp;lt;td align='left'&amp;gt;Athens&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;2006&amp;lt;/td&amp;gt;&amp;lt;td align='left'&amp;gt;Turin&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&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;source lang=sql class='tidy'&amp;gt; DROP TABLE games&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=sql class='setup'&amp;gt; CREATE TABLE games(&lt;br /&gt;
  yr INTEGER PRIMARY KEY,&lt;br /&gt;
  city VARCHAR(20));&lt;br /&gt;
INSERT INTO games VALUES (2004,'Athens');&lt;br /&gt;
INSERT INTO games VALUES (2006,'Turin');&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The ALTER statement can be used to add a column.&lt;br /&gt;
In this example the column season indicates if the games are winter or summer games. &lt;br /&gt;
&amp;lt;source lang='sql' class='def e-oracle'&amp;gt;&lt;br /&gt;
SELECT * FROM scott.games;&lt;br /&gt;
ALTER TABLE games ADD season VARCHAR(6);&lt;br /&gt;
UPDATE games SET season = 'summer'&lt;br /&gt;
  WHERE yr = 2004;&lt;br /&gt;
UPDATE games SET season = 'winter'&lt;br /&gt;
  WHERE yr = 2006;&lt;br /&gt;
SELECT * FROM scott.games;&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&amp;lt;source lang='sql' class='def'&amp;gt;&lt;br /&gt;
SELECT * FROM games;&lt;br /&gt;
ALTER TABLE games ADD season VARCHAR(6);&lt;br /&gt;
UPDATE games SET season = 'summer'&lt;br /&gt;
  WHERE yr = 2004;&lt;br /&gt;
UPDATE games SET season = 'winter'&lt;br /&gt;
  WHERE yr = 2006;&lt;br /&gt;
SELECT * FROM games;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;See also&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;[[INSERT_.._VALUES |INSERT]]&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;[[DROP |DROP]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Connor</name></author>	</entry>

	</feed>