【MySQL】MySQL中查詢出數據表中存在重複的值list

一、目的:查詢MySQL數據表中,重複記錄的值spa

二、示例:code

 

三、代碼:blog

select serial_num,count(*) as count 
FROM card_ticket 
GROUP BY serial_num
HAVING count >1

 四、結果:class

相關文章
相關標籤/搜索