<?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>The Pythian Blog &#187; primary key</title>
	<atom:link href="http://www.pythian.com/news/tag/primary-key/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 09:54:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Find All Tables With No Primary Key</title>
		<link>http://www.pythian.com/news/803/find-all-tables-with-no-primary-key/</link>
		<comments>http://www.pythian.com/news/803/find-all-tables-with-no-primary-key/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 18:31:54 +0000</pubDate>
		<dc:creator>Sheeri Cabral</dc:creator>
				<category><![CDATA[Group Blog Posts]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[information_schema]]></category>
		<category><![CDATA[primary key]]></category>

		<guid isPermaLink="false">http://www.pythian.com/blogs/803/find-all-tables-with-no-primary-key</guid>
		<description><![CDATA[A friend asked for this, so I thought it&#8217;d be helpful: All tables with no primary key: use INFORMATION_SCHEMA; select CONCAT(t.table_name,".",t.table_schema) as tbl, from TABLES AS t LEFT JOIN KEY_COLUMN_USAGE AS c ON (t.TABLE_NAME=c.TABLE_NAME AND c.CONSTRAINT_SCHEMA=t.TABLE_SCHEMA AND constraint_name='PRIMARY') WHERE t.table_schema!="information_schema" AND constraint_name IS NULL; All tables and their primary keys, if exist: use INFORMATION_SCHEMA; select [...]]]></description>
		<wfw:commentRss>http://www.pythian.com/news/803/find-all-tables-with-no-primary-key/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

