<?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=What_are_the_columns_of_the_BBC_table%3F&amp;feed=atom&amp;action=history</id>
		<title>What are the columns of the BBC table? - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://sqlzoo.net/w/index.php?title=What_are_the_columns_of_the_BBC_table%3F&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=What_are_the_columns_of_the_BBC_table%3F&amp;action=history"/>
		<updated>2013-06-19T16:51:39Z</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=What_are_the_columns_of_the_BBC_table%3F&amp;diff=1155&amp;oldid=prev</id>
		<title>Connor: Created page with &quot;What are the columns of the bbc table &lt;div class='ht'&gt; &lt;div class=params&gt;schema:gisq&lt;/div&gt; &lt;source lang=sql class='tidy'&gt; &lt;/source&gt; &lt;source lang=sql class='setup'&gt;&lt;/source&gt; &lt;s...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=What_are_the_columns_of_the_BBC_table%3F&amp;diff=1155&amp;oldid=prev"/>
				<updated>2012-07-13T09:57:07Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;What are the columns of the bbc table &amp;lt;div class=&amp;#039;ht&amp;#039;&amp;gt; &amp;lt;div class=params&amp;gt;schema:gisq&amp;lt;/div&amp;gt; &amp;lt;source lang=sql class=&amp;#039;tidy&amp;#039;&amp;gt; &amp;lt;/source&amp;gt; &amp;lt;source lang=sql class=&amp;#039;setup&amp;#039;&amp;gt;&amp;lt;/source&amp;gt; &amp;lt;s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;What are the columns of the bbc table&lt;br /&gt;
&amp;lt;div class='ht'&amp;gt;&lt;br /&gt;
&amp;lt;div class=params&amp;gt;schema:gisq&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;source lang=sql class='tidy'&amp;gt;&lt;br /&gt;
&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;
&amp;lt;source lang='sql' class='def e-sqlite'&amp;gt;SELECT sql FROM sqlite_master&lt;br /&gt;
WHERE name='bbc'&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-db2'&amp;gt;SELECT * FROM syscat.columns&lt;br /&gt;
WHERE tabname='BBC'&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-ingres'&amp;gt; &amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-access'&amp;gt; &amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-postgres'&amp;gt;SELECT attnum,attname from pg_class, pg_attribute&lt;br /&gt;
WHERE relname='bbc'&lt;br /&gt;
  AND pg_class.oid=attrelid&lt;br /&gt;
  AND attnum &amp;gt; 0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-oracle'&amp;gt;SELECT * FROM all_tab_columns&lt;br /&gt;
 WHERE table_name='BBC'&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-sqlserver'&amp;gt;SELECT syscolumns.* &lt;br /&gt;
FROM syscolumns JOIN sysobjects&lt;br /&gt;
       ON syscolumns.id=sysobjects.id&lt;br /&gt;
WHERE sysobjects.name='bbc'&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-mysql'&amp;gt;show columns from bbc&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-mimer'&amp;gt; &amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-sybase'&amp;gt;SELECT syscolumns.* &lt;br /&gt;
FROM syscolumns JOIN sysobjects&lt;br /&gt;
       ON syscolumns.id=sysobjects.id&lt;br /&gt;
WHERE sysobjects.name='bbc'&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-sqlite&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;You can examine the SQL create statement.&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;When working with the sqlplus interface you can simply ask DESCRIBE bbc;&lt;br /&gt;
Notice that the table name is in upper case.&lt;br /&gt;
See also USER_TAB_COLUMNS&lt;br /&gt;
Manual page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-sqlserver&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;Also: sp_columns @table_name=bbc&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-sybase&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;Also: sp_columns @table_name=bbc&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{Meta Data ref}}&lt;/div&gt;</summary>
		<author><name>Connor</name></author>	</entry>

	</feed>