mysql 查詢數據資料是否有重複
Temperature: 0 °C
有沒有試過資料庫裡上萬筆資料卻不知道是不是有重複的數據?
這時你一定要試試這個查詢方法~
//列出是否有重複的姓名
select name,count(*) as count from member_table group by name having count >1
//上列查詢是說要查詢member_table的表單裡有沒有name相同的數量是大於1的
https://innstory.com/story-mysql_查詢數據資料是否有重複-1602
Mysql