<?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>AUTO_INCREMENT &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/auto_increment/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>Wed, 04 Oct 2017 06:39:17 +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 Last AUTO_INCREMENT value for a Table</title>
		<link>https://www.dbrnd.com/2016/02/mysql-script-to-find-last-auto_increment-value-for-a-table/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 21 Feb 2016 19:58:30 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[AUTO_INCREMENT]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></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=1747</guid>

					<description><![CDATA[In this post, I am sharing a script to find last updated AUTO_INCREMENT of a MySQL Table. We use LAST_INSERT_ID() function to get the last updated AUTO_INCREMENT value for the particular running session. We can use this with any code block and it will return last updated AUTO_INCREMENT value of the last executed statement. Database [&#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-auto_increment-value-for-a-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Last%20AUTO_INCREMENT%20value%20for%20a%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-auto_increment-value-for-a-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Last%20AUTO_INCREMENT%20value%20for%20a%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-auto_increment-value-for-a-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Last%20AUTO_INCREMENT%20value%20for%20a%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-auto_increment-value-for-a-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Last%20AUTO_INCREMENT%20value%20for%20a%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-auto_increment-value-for-a-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Last%20AUTO_INCREMENT%20value%20for%20a%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-auto_increment-value-for-a-table%2F&amp;linkname=MySQL%3A%20Script%20to%20find%20Last%20AUTO_INCREMENT%20value%20for%20a%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-auto_increment-value-for-a-table%2F&#038;title=MySQL%3A%20Script%20to%20find%20Last%20AUTO_INCREMENT%20value%20for%20a%20Table" data-a2a-url="https://www.dbrnd.com/2016/02/mysql-script-to-find-last-auto_increment-value-for-a-table/" data-a2a-title="MySQL: Script to find Last AUTO_INCREMENT value for a Table"></a></p><p>In this post, I am sharing a script to find last updated AUTO_INCREMENT of a MySQL Table. </p>
<p>We use LAST_INSERT_ID() function to get the last updated AUTO_INCREMENT value for the particular running session. We can use this with any code block and it will return last updated AUTO_INCREMENT value of the last executed statement. </p>
<blockquote><p>Database Administrator also requires to find last updated AUTO_INCREMENT value for any table and wants to generate a report for that. </p></blockquote>
<p>Below is a script to find last updated AUTO_INCREMENT value:</p>
<p><strong>Using INFORMATION_SCHEMA.TABLES:</strong></p><pre class="crayon-plain-tag">SELECT AUTO_INCREMENT
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 'TableName' ;</pre> </p>
<p><code><strong>Please visit other related Article:</strong></code><br />
<a href="https://www.dbrnd.com/2015/11/mysql-get-id-of-the-last-updated-row/" target="_blank"><strong>MySQL: Get ID of the Last Updated Row</strong></a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
