<?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.tables &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/information_schema-tables/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>Sun, 20 May 2018 19:34:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>MySQL: Script to find Missing Indexes for particular type of Columns</title>
		<link>https://www.dbrnd.com/2017/07/mysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage/</link>
					<comments>https://www.dbrnd.com/2017/07/mysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 04 Jul 2017 16:16:51 +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[information_schema.tables]]></category>
		<category><![CDATA[missing index]]></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 Tuning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5518</guid>

					<description><![CDATA[In this post, I am sharing a script to find missing indexes in MySQL only for those columns which name ended with &#8216;_id&#8217;. The full table scanning is always creating a performance issue for any database. As a Database Professional, you might be adding database indexes on a table but periodically the volume of data [&#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%2F2017%2F07%2Fmysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Missing%20Indexes%20for%20particular%20type%20of%20Columns" 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%2F2017%2F07%2Fmysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Missing%20Indexes%20for%20particular%20type%20of%20Columns" 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%2F2017%2F07%2Fmysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Missing%20Indexes%20for%20particular%20type%20of%20Columns" 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%2F2017%2F07%2Fmysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Missing%20Indexes%20for%20particular%20type%20of%20Columns" 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%2F2017%2F07%2Fmysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Missing%20Indexes%20for%20particular%20type%20of%20Columns" 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%2F2017%2F07%2Fmysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Missing%20Indexes%20for%20particular%20type%20of%20Columns" 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%2F2017%2F07%2Fmysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage%2F&#038;title=MySQL%3A%20Script%20to%20find%20Missing%20Indexes%20for%20particular%20type%20of%20Columns" data-a2a-url="https://www.dbrnd.com/2017/07/mysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage/" data-a2a-title="MySQL: Script to find Missing Indexes for particular type of Columns"></a></p><p>In this post, I am sharing a script to find missing indexes in MySQL only for those columns which name ended with &#8216;_id&#8217;.</p>
<blockquote><p>The full table scanning is always creating a performance issue for any database.</p>
<blockquote><p>As a Database Professional, you might be adding database indexes on a table but periodically the volume of data is changing so we need to analyze the old indexes, or we should find missing indexes which may require for query optimizer. </p></blockquote>
<p>On the other hand, Database Administrator may also require a report on missing indexes which they can share with developers and users so that they can modify it.</p>
<pre class="crayon-plain-tag">SELECT 
	t.TABLE_SCHEMA
	,t.TABLE_NAME
	,c.COLUMN_NAME
	,IFNULL(kcu.CONSTRAINT_NAME, 'Not indexed') AS Indexed
FROM information_schema.TABLES as t
INNER JOIN information_schema.COLUMNS as c
	ON c.TABLE_SCHEMA = t.TABLE_SCHEMA
		AND c.TABLE_NAME = t.TABLE_NAME
		AND c.COLUMN_NAME LIKE '%_id'
LEFT JOIN information_schema.KEY_COLUMN_USAGE as kcu
	ON kcu.TABLE_SCHEMA = t.TABLE_SCHEMA
		AND kcu.TABLE_NAME = t.TABLE_NAME
		AND kcu.COLUMN_NAME = c.COLUMN_NAME
		AND kcu.ORDINAL_POSITION = 1
WHERE kcu.TABLE_SCHEMA IS NULL
AND t.TABLE_SCHEMA NOT IN ('information_schema', 'performance_schema', 'mysql');</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/07/mysql-script-to-find-a-missing-indexes-of-the-database-key_column_usage/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>MySQL: Script to find Largest Databases size on Server</title>
		<link>https://www.dbrnd.com/2016/10/mysql-script-to-find-biggest-database-size-on-server-information_tables-index-size-table-size-row-size/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 17 Oct 2016 17:16:57 +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[database size]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[information_schema.tables]]></category>
		<category><![CDATA[large database size]]></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=3810</guid>

					<description><![CDATA[In this post, I am sharing a useful DBA script to find largest databases on MySQL Server. This kind of handy script always useful while DBA requires quick monitoring on the Database Server. So, I am always finding this kind of script and sharing here for making DBA task easier. I prepared few calculated columns [&#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%2F10%2Fmysql-script-to-find-biggest-database-size-on-server-information_tables-index-size-table-size-row-size%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Largest%20Databases%20size%20on%20Server" 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%2F10%2Fmysql-script-to-find-biggest-database-size-on-server-information_tables-index-size-table-size-row-size%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Largest%20Databases%20size%20on%20Server" 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%2F10%2Fmysql-script-to-find-biggest-database-size-on-server-information_tables-index-size-table-size-row-size%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Largest%20Databases%20size%20on%20Server" 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%2F10%2Fmysql-script-to-find-biggest-database-size-on-server-information_tables-index-size-table-size-row-size%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Largest%20Databases%20size%20on%20Server" 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%2F10%2Fmysql-script-to-find-biggest-database-size-on-server-information_tables-index-size-table-size-row-size%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Largest%20Databases%20size%20on%20Server" 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%2F10%2Fmysql-script-to-find-biggest-database-size-on-server-information_tables-index-size-table-size-row-size%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Largest%20Databases%20size%20on%20Server" 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%2F10%2Fmysql-script-to-find-biggest-database-size-on-server-information_tables-index-size-table-size-row-size%2F&#038;title=MySQL%3A%20Script%20to%20find%20Largest%20Databases%20size%20on%20Server" data-a2a-url="https://www.dbrnd.com/2016/10/mysql-script-to-find-biggest-database-size-on-server-information_tables-index-size-table-size-row-size/" data-a2a-title="MySQL: Script to find Largest Databases size on Server"></a></p><p>In this post, I am sharing a useful DBA script to find largest databases on MySQL Server. </p>
<p>This kind of handy script always useful while DBA requires quick monitoring on the Database Server.<br />
So, I am always finding this kind of script and sharing here for making DBA task easier. </p>
<p>I prepared few calculated columns with the help of information_schema.TABLES.</p>
<pre class="crayon-plain-tag">SELECT
	COUNT(*) AS TotalTableCount
	,table_schema
	,CONCAT(ROUND(SUM(table_rows)/1000000,2),'M') AS TotalRowCount
	,CONCAT(ROUND(SUM(data_length)/(1024*1024*1024),2),'G') AS TotalTableSize
	,CONCAT(ROUND(SUM(index_length)/(1024*1024*1024),2),'G') AS TotalTableIndex
	,CONCAT(ROUND(SUM(data_length+index_length)/(1024*1024*1024),2),'G') TotalSize	
FROM information_schema.TABLES
GROUP BY table_schema
ORDER BY SUM(data_length+index_length) 
DESC LIMIT 10;</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MySQL: How to TRUNCATE all Tables of a Database?</title>
		<link>https://www.dbrnd.com/2016/09/mysql-how-to-truncate-all-tables-of-a-database/</link>
					<comments>https://www.dbrnd.com/2016/09/mysql-how-to-truncate-all-tables-of-a-database/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 29 Sep 2016 16:16:57 +0000</pubDate>
				<category><![CDATA[MySQL]]></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_CHECKS]]></category>
		<category><![CDATA[information_schema.tables]]></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=2103</guid>

					<description><![CDATA[In this post, I am sharing one script to generate TRUNCATE TABLE script for all tables of MySQL Database Server. Generally, Database Developer creates a testing tables in development or report database server and even sometimes it is required to TRUNCATE all tables of a database. I have prepared one small script using INFORMATION_SCHEMA.TABLES which [&#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%2F09%2Fmysql-how-to-truncate-all-tables-of-a-database%2F&amp;linkname=MySQL%3A%20How%20to%20TRUNCATE%20all%20Tables%20of%20a%20Database%3F" 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%2F09%2Fmysql-how-to-truncate-all-tables-of-a-database%2F&amp;linkname=MySQL%3A%20How%20to%20TRUNCATE%20all%20Tables%20of%20a%20Database%3F" 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%2F09%2Fmysql-how-to-truncate-all-tables-of-a-database%2F&amp;linkname=MySQL%3A%20How%20to%20TRUNCATE%20all%20Tables%20of%20a%20Database%3F" 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%2F09%2Fmysql-how-to-truncate-all-tables-of-a-database%2F&amp;linkname=MySQL%3A%20How%20to%20TRUNCATE%20all%20Tables%20of%20a%20Database%3F" 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%2F09%2Fmysql-how-to-truncate-all-tables-of-a-database%2F&amp;linkname=MySQL%3A%20How%20to%20TRUNCATE%20all%20Tables%20of%20a%20Database%3F" 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%2F09%2Fmysql-how-to-truncate-all-tables-of-a-database%2F&amp;linkname=MySQL%3A%20How%20to%20TRUNCATE%20all%20Tables%20of%20a%20Database%3F" 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%2F09%2Fmysql-how-to-truncate-all-tables-of-a-database%2F&#038;title=MySQL%3A%20How%20to%20TRUNCATE%20all%20Tables%20of%20a%20Database%3F" data-a2a-url="https://www.dbrnd.com/2016/09/mysql-how-to-truncate-all-tables-of-a-database/" data-a2a-title="MySQL: How to TRUNCATE all Tables of a Database?"></a></p><p>In this post, I am sharing one script to generate TRUNCATE TABLE script for all tables of MySQL Database Server. </p>
<p>Generally, Database Developer creates a testing tables in development or report database server and even sometimes it is required to TRUNCATE all tables of a database. </p>
<p>I have prepared one small script using INFORMATION_SCHEMA.TABLES which generates TRUNCATE TABLE script for all tables and you can also apply filters like: database_name, table_name.</p>
<pre class="crayon-plain-tag">SELECT CONCAT('TRUNCATE TABLE ',table_schema,'.',TABLE_NAME, ';') 
FROM INFORMATION_SCHEMA.TABLES
WHERE table_schema IN ('database_name')</pre> </p>
<p>You can copy the result of this script and can perform TRUNCATE operation for multiple tables. </p>
<blockquote><p>During TRUNCATE operation if you get any error like foreign key constraint fail, then you can enable and disable FOREIGN_KEY_CHECKS.</p></blockquote>
<p><strong>Error like:</strong></p>
<pre class="crayon-plain-tag">ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key constraint fails</pre> </p>
<p><strong>Disable Foreign Key:</strong></p><pre class="crayon-plain-tag">SET FOREIGN_KEY_CHECKS=0;</pre><p> </p>
<p><strong>Enable Foreign Key:</strong></p><pre class="crayon-plain-tag">SET FOREIGN_KEY_CHECKS=1;</pre><p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/09/mysql-how-to-truncate-all-tables-of-a-database/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>MySQL: Script to find last Updated time of the Table</title>
		<link>https://www.dbrnd.com/2016/02/mysql-script-to-find-last-updated-time-of-the-table/</link>
					<comments>https://www.dbrnd.com/2016/02/mysql-script-to-find-last-updated-time-of-the-table/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 26 Feb 2016 19:29:45 +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[information_schema.tables]]></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=1732</guid>

					<description><![CDATA[In this post, I am sharing a DBA query to find the last updated time of the MySQL Table. We can also check the row level last updated time by adding one extra column into a table like last_updated_datetime. For reporting purposes, we are using this approach to check the row level last updated DateTime. [&#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-last-updated-time-of-the-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20last%20Updated%20time%20of%20the%20Table" 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-last-updated-time-of-the-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20last%20Updated%20time%20of%20the%20Table" 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-last-updated-time-of-the-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20last%20Updated%20time%20of%20the%20Table" 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-last-updated-time-of-the-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20last%20Updated%20time%20of%20the%20Table" 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-last-updated-time-of-the-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20last%20Updated%20time%20of%20the%20Table" 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-last-updated-time-of-the-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20last%20Updated%20time%20of%20the%20Table" 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-last-updated-time-of-the-table%2F&#038;title=MySQL%3A%20Script%20to%20find%20last%20Updated%20time%20of%20the%20Table" data-a2a-url="https://www.dbrnd.com/2016/02/mysql-script-to-find-last-updated-time-of-the-table/" data-a2a-title="MySQL: Script to find last Updated time of the Table"></a></p><p>In this post, I am sharing a DBA query to find the last updated time of the MySQL Table. </p>
<p>We can also check the row level last updated time by adding one extra column into a table like last_updated_datetime.<br />
For reporting purposes, we are using this approach to check the row level last updated DateTime. </p>
<blockquote><p>As a Database Administrator, we are also responsible for monitoring some of the important tables of our MySQL database.
</p></blockquote>
<p><strong>We can use information_schema.tables to find the information of the MySQL tables. </strong></p>
<p><strong> Using information_schema.tables:</strong></p><pre class="crayon-plain-tag">SELECT UPDATE_TIME
FROM information_schema.tables
WHERE TABLE_SCHEMA = 'Database_Name'
   AND TABLE_NAME = 'Table_Name';</pre><p> </p>
<p><strong>Using Status Command:</strong></p>
<pre class="crayon-plain-tag">SHOW TABLE STATUS FROM Database_Name LIKE 'Table_Name';</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/02/mysql-script-to-find-last-updated-time-of-the-table/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
