<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Delete all duplicate rows in MySQL	</title>
	<atom:link href="https://www.dbrnd.com/2015/09/delete-all-duplicate-rows-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2015/09/delete-all-duplicate-rows-in-mysql/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 18 Feb 2020 10:17:27 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Shaik		</title>
		<link>https://www.dbrnd.com/2015/09/delete-all-duplicate-rows-in-mysql/#comment-8097</link>

		<dc:creator><![CDATA[Shaik]]></dc:creator>
		<pubDate>Tue, 18 Feb 2020 10:17:27 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=493#comment-8097</guid>

					<description><![CDATA[I am getting below error while trying this 

ALTER IGNORE 
TABLE tbl_DuplicateEmployee_VarcharDatatype
ADD UNIQUE INDEX idx_tbl_DuplicateEmployee_VarcharDatatype
(EmpID,EmpName);

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;IGNORE 
TABLE tbl_DuplicateEmployee_VarcharDatatype
ADD UNIQUE INDEX idx_tbl_Dup&#039; at line 1]]></description>
			<content:encoded><![CDATA[<p>I am getting below error while trying this </p>
<p>ALTER IGNORE<br />
TABLE tbl_DuplicateEmployee_VarcharDatatype<br />
ADD UNIQUE INDEX idx_tbl_DuplicateEmployee_VarcharDatatype<br />
(EmpID,EmpName);</p>
<p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;IGNORE<br />
TABLE tbl_DuplicateEmployee_VarcharDatatype<br />
ADD UNIQUE INDEX idx_tbl_Dup&#8217; at line 1</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sudheer		</title>
		<link>https://www.dbrnd.com/2015/09/delete-all-duplicate-rows-in-mysql/#comment-7768</link>

		<dc:creator><![CDATA[Sudheer]]></dc:creator>
		<pubDate>Mon, 23 Sep 2019 06:25:11 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=493#comment-7768</guid>

					<description><![CDATA[Hiii Anvesh,

           How to delete the duplicate data in mysql workbench.There are 6 lakhs above data in the table. I have used below query for delete but it shows Lost connection to Mysql Server during query. can you please send the query or explain how to solve problem.

SET SQL_SAFE_UPDATES=0;
DELETE t1 FROM PumpErrorLog t1
INNER JOIN PumpErrorLog t2 
WHERE 
    t1.id &#060; t2.id AND 
    t1.device_id = t2.device_id AND
    t1.side = t2.side AND
                t1.event_date = t2.event_date AND 
                 t1.data_source = t2.data_source AND 
                 t1.code= t2.code AND
                 t1.level= t2.level AND
                 t1.description= t2.description AND
                 t1.pump_number= t2.pump_number AND
                 t1.TimeStamp= t2.TimeStamp AND
                 t1.report_time= t2.report_time AND
				 t1.s3logfile= t2.s3logfile AND
                 t1.board_timestamp= t2.board_timestamp ;]]></description>
			<content:encoded><![CDATA[<p>Hiii Anvesh,</p>
<p>           How to delete the duplicate data in mysql workbench.There are 6 lakhs above data in the table. I have used below query for delete but it shows Lost connection to Mysql Server during query. can you please send the query or explain how to solve problem.</p>
<p>SET SQL_SAFE_UPDATES=0;<br />
DELETE t1 FROM PumpErrorLog t1<br />
INNER JOIN PumpErrorLog t2<br />
WHERE<br />
    t1.id &lt; t2.id AND<br />
    t1.device_id = t2.device_id AND<br />
    t1.side = t2.side AND<br />
                t1.event_date = t2.event_date AND<br />
                 t1.data_source = t2.data_source AND<br />
                 t1.code= t2.code AND<br />
                 t1.level= t2.level AND<br />
                 t1.description= t2.description AND<br />
                 t1.pump_number= t2.pump_number AND<br />
                 t1.TimeStamp= t2.TimeStamp AND<br />
                 t1.report_time= t2.report_time AND<br />
				 t1.s3logfile= t2.s3logfile AND<br />
                 t1.board_timestamp= t2.board_timestamp ;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anvesh Patel		</title>
		<link>https://www.dbrnd.com/2015/09/delete-all-duplicate-rows-in-mysql/#comment-5443</link>

		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 29 Dec 2016 18:33:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=493#comment-5443</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dbrnd.com/2015/09/delete-all-duplicate-rows-in-mysql/#comment-5438&quot;&gt;Hareesh&lt;/a&gt;.

When this option is given, the server does not use the optimized method of processing an ALTER TABLE operation. It reverts to using a temporary table, copying over the data, and then renaming the temporary table to the original.]]></description>
			<content:encoded><![CDATA[<p>When this option is given, the server does not use the optimized method of processing an ALTER TABLE operation. It reverts to using a temporary table, copying over the data, and then renaming the temporary table to the original.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Hareesh		</title>
		<link>https://www.dbrnd.com/2015/09/delete-all-duplicate-rows-in-mysql/#comment-5438</link>

		<dc:creator><![CDATA[Hareesh]]></dc:creator>
		<pubDate>Tue, 27 Dec 2016 16:17:37 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=493#comment-5438</guid>

					<description><![CDATA[Hi Anvesh,

Please explain a bit more about below queries.

what does this query :
SET SESSION old_alter_table=1;


ALTER IGNORE 
TABLE Employee.tbl_DuplicateEmployee_VarcharDatatype
ADD UNIQUE INDEX idx_tbl_DuplicateEmployee_VarcharDatatype
(EmpID,EmpName);

Thanks]]></description>
			<content:encoded><![CDATA[<p>Hi Anvesh,</p>
<p>Please explain a bit more about below queries.</p>
<p>what does this query :<br />
SET SESSION old_alter_table=1;</p>
<p>ALTER IGNORE<br />
TABLE Employee.tbl_DuplicateEmployee_VarcharDatatype<br />
ADD UNIQUE INDEX idx_tbl_DuplicateEmployee_VarcharDatatype<br />
(EmpID,EmpName);</p>
<p>Thanks</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
