<?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>INFORMATION_SCHEMA.KEY_COLUMN_USAGE &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/information_schema-key_column_usage/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 03 Oct 2017 13:43:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>MySQL: Script to find Source and Destination of All Foreign Key Constraint</title>
		<link>https://www.dbrnd.com/2016/02/mysql-script-to-find-source-and-destination-of-all-foreign-key-constraint/</link>
					<comments>https://www.dbrnd.com/2016/02/mysql-script-to-find-source-and-destination-of-all-foreign-key-constraint/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 20 Feb 2016 20:40:10 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[foreign key]]></category>
		<category><![CDATA[INFORMATION_SCHEMA.KEY_COLUMN_USAGE]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tunning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1736</guid>

					<description><![CDATA[In this post, I am sharing a script to find the list of Foreign Keys with the source and destination table information of a MySQL Database. Using below script you can easily find all foreign keys of a MySQL Database and its very useful for Database Architect for finding different references of foreign keys. I [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F02%2Fmysql-script-to-find-source-and-destination-of-all-foreign-key-constraint%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Source%20and%20Destination%20of%20All%20Foreign%20Key%20Constraint" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F02%2Fmysql-script-to-find-source-and-destination-of-all-foreign-key-constraint%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Source%20and%20Destination%20of%20All%20Foreign%20Key%20Constraint" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F02%2Fmysql-script-to-find-source-and-destination-of-all-foreign-key-constraint%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Source%20and%20Destination%20of%20All%20Foreign%20Key%20Constraint" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F02%2Fmysql-script-to-find-source-and-destination-of-all-foreign-key-constraint%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Source%20and%20Destination%20of%20All%20Foreign%20Key%20Constraint" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F02%2Fmysql-script-to-find-source-and-destination-of-all-foreign-key-constraint%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Source%20and%20Destination%20of%20All%20Foreign%20Key%20Constraint" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F02%2Fmysql-script-to-find-source-and-destination-of-all-foreign-key-constraint%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Source%20and%20Destination%20of%20All%20Foreign%20Key%20Constraint" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F02%2Fmysql-script-to-find-source-and-destination-of-all-foreign-key-constraint%2F&#038;title=MySQL%3A%20Script%20to%20find%20Source%20and%20Destination%20of%20All%20Foreign%20Key%20Constraint" data-a2a-url="https://www.dbrnd.com/2016/02/mysql-script-to-find-source-and-destination-of-all-foreign-key-constraint/" data-a2a-title="MySQL: Script to find Source and Destination of All Foreign Key Constraint"></a></p><p>In this post, I am sharing a script to find the list of Foreign Keys with the source and destination table information of a MySQL Database. </p>
<blockquote><p>Using below script you can easily find all foreign keys of a MySQL Database and its very useful for Database Architect for finding different references of foreign keys.</p></blockquote>
<p>I am finding all Foreign Key references using INFORMATION_SCHEMA.KEY_COLUMN_USAGE. </p>
<p><strong>Below is a script:</strong></p>
<pre class="crayon-plain-tag">SELECT
  referenced_table_name AS ParentTable
  ,table_name AS ChildTable
  ,constraint_name AS ConstraintName
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
WHERE referenced_table_name IS NOT NULL
ORDER BY referenced_table_name;</pre> </p>
<blockquote class="wp-embedded-content" data-secret="TWCuSL9Nsg"><p><a href="https://www.dbrnd.com/2015/08/find-table-dependency-in-constraint-view-stored-procedure-of-mysql/">Find Table Dependency in MySQL</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2015/08/find-table-dependency-in-constraint-view-stored-procedure-of-mysql/embed/#?secret=TWCuSL9Nsg" data-secret="TWCuSL9Nsg" width="600" height="338" title="&#8220;Find Table Dependency in MySQL&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote class="wp-embedded-content" data-secret="pBqkdAxf4j"><p><a href="https://www.dbrnd.com/2015/10/postgresql-script-to-find-source-and-destination-of-all-foreign-key-constraint/">PostgreSQL: Script to find Source and Destination of All Foreign Key Constraint</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2015/10/postgresql-script-to-find-source-and-destination-of-all-foreign-key-constraint/embed/#?secret=pBqkdAxf4j" data-secret="pBqkdAxf4j" width="600" height="338" title="&#8220;PostgreSQL: Script to find Source and Destination of All Foreign Key Constraint&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<blockquote class="wp-embedded-content" data-secret="pqW0N2BMDU"><p><a href="https://www.dbrnd.com/2015/06/find-foreign-key-reference-source-target-in-sql-server/">How to Find Foreign key References in SQL Server</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2015/06/find-foreign-key-reference-source-target-in-sql-server/embed/#?secret=pqW0N2BMDU" data-secret="pqW0N2BMDU" width="600" height="338" title="&#8220;How to Find Foreign key References in SQL Server&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/02/mysql-script-to-find-source-and-destination-of-all-foreign-key-constraint/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
