【数据库_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)

posted @ 2017-02-07 10:18  多弗朗明哥  阅读(167)  评论(0)    收藏  举报