【MySQL】MySQL中查询出数据表中存在重复的值

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

参考 https://www.cnblogs.com/xuzhengzong/p/9877248.html

posted @ 2020-03-30 15:24  少年奶油喵  阅读(337)  评论(0编辑  收藏  举报