【数据库_Mysql】Mysql知识汇总

1.将多列字段合并显示用CONCAT(XX,XX,...):

2.查询表中某字段重复的数据:

查重复字段:select 字段 from table group by 字段 having count(*)>1

查重复字段所有信息:select*from table where  字段 in(select 字段 from table group by 字段 having count(*)>1)

原文地址:https://www.cnblogs.com/dflmg/p/6372856.html