一、目的:查詢MySQL數據表中,重複記錄的值spa
二、示例:code
三、代碼:blog
select serial_num,count(*) as count FROM card_ticket GROUP BY serial_num HAVING count >1
四、結果:class