October 18, 2007

Find duplex entry in SQL database

SELECT field_name,COUNT(*) FROM table_name GROUP BY field_name HAVING COUNT(*) > 1
ref. 找出資料表中重複的資料
本來也跟這篇文章的作者一樣, 是寫個小程式去檢查, 原來只要一行就可以解決了.

Posted by pank at October 18, 2007 11:42 AM
Comments
Post a comment













Remember personal info?