mysql数据表中,如何判断某一条记录是否重复

#检测foodname是否重复
select foodname,count(*) as count from tablename group by foodname having count>1;

猜你喜欢

转载自blog.csdn.net/u014229742/article/details/82109283