<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3173246258752936082</id><updated>2024-08-28T21:41:54.322-07:00</updated><category term="MySQL"/><category term="bug"/><category term="database"/><category term="google docs"/><category term="index"/><category term="spreadsheet"/><title type='text'>jingit</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jingit.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3173246258752936082/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jingit.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>JT</name><uri>http://www.blogger.com/profile/05519265721943420733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3173246258752936082.post-5051079132647747925</id><published>2010-07-22T04:05:00.000-07:00</published><updated>2010-07-22T04:19:42.715-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bug"/><category scheme="http://www.blogger.com/atom/ns#" term="google docs"/><category scheme="http://www.blogger.com/atom/ns#" term="spreadsheet"/><title type='text'>Google Docs Bug - Paste Not Working In Spreadsheet</title><content type='html'>I have tried to copy and paste part of a table from Excel 2007 to Google Docs using Chrome 6.0.472.0 dev. Unfortunately when I used right-click and chose paste it didn&#39;t work, neither did it work when I used the menu Edit and chose Paste. But ctrl+v worked! This also happend in Firefox 3.6.7.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.google.com/support/forum/p/Google+Docs/thread?tid=7ea412a08da6b272&amp;amp;hl=en&quot;&gt;http://www.google.com/support/forum/p/Google+Docs/thread?tid=7ea412a08da6b272&amp;amp;hl=en&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jingit.blogspot.com/feeds/5051079132647747925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jingit.blogspot.com/2010/07/google-docs-bug-paste-not-working-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3173246258752936082/posts/default/5051079132647747925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3173246258752936082/posts/default/5051079132647747925'/><link rel='alternate' type='text/html' href='http://jingit.blogspot.com/2010/07/google-docs-bug-paste-not-working-in.html' title='Google Docs Bug - Paste Not Working In Spreadsheet'/><author><name>JT</name><uri>http://www.blogger.com/profile/05519265721943420733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3173246258752936082.post-2045058918978621299</id><published>2010-03-19T04:38:00.000-07:00</published><updated>2010-03-19T05:07:18.837-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="index"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>Add Unique Index in MySQL and Remove Duplicated Data Automatically using &quot;IGNORE&quot; Keyword</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;I have been trying to remove some duplicated data in MySQL and have been trying different approaches. Of course you can run a very complicated query but if a column or a few columns should only have unique values you really should build a unique index. The benefit of this is not only that you don&#39;t have to manually run a complicated query, but the data integrity will be ensured in the future.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;You can run this script to build a unique index:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;ALTER TABLE `table` ADD UNIQUE INDEX `name_of_index` (`unique_column` ASC);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;The only problem is that if you already have duplicated data(in this case if you have multiple rows that have the same value in column unique_column), this script will chuck an error:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ERROR 1062: Duplicate entry &#39;some_value&#39; for key &#39;name_of_index&#39;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The trick we&#39;re missing here is actually quite simple - simply add &quot;IGNORE&quot; keyword in your script:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;ALTER &lt;b&gt;&lt;i&gt;IGNORE&lt;/i&gt;&lt;/b&gt; TABLE `table` ADD UNIQUE INDEX `name_of_index` (`unique_column` ASC);&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;All duplicated data will then be automatically removed to ensure data is unique in the column(s) on which the unique index is being built.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;Job done:)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; color: rgb(85, 85, 85); font-size: 12px; line-height: 21px; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:verdana, arial, helvetica, sans-serif;font-size:100%;color:#555555;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 21px;&quot;&gt;Thanks to the &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/create-index.html&quot;&gt;comment&lt;/a&gt; posted by &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; line-height: 23px; &quot;&gt;Evan XX.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:verdana, arial, helvetica, sans-serif;font-size:100%;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jingit.blogspot.com/feeds/2045058918978621299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jingit.blogspot.com/2010/03/add-unique-index-in-mysql-and-remove.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3173246258752936082/posts/default/2045058918978621299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3173246258752936082/posts/default/2045058918978621299'/><link rel='alternate' type='text/html' href='http://jingit.blogspot.com/2010/03/add-unique-index-in-mysql-and-remove.html' title='Add Unique Index in MySQL and Remove Duplicated Data Automatically using &quot;IGNORE&quot; Keyword'/><author><name>JT</name><uri>http://www.blogger.com/profile/05519265721943420733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>