mysql 去掉重复数据
DELETE from 表明 where id not in( select a.id from ( SELECT id FROM 表明 GROUP BY 字段 )a )
MySQL5.7版本sql_mode=only_full_group_by问题解决办法
SET sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
https://blog.csdn.net/weixin_43064185/article/details/99646535