SELECT * FROM tb_history th where not exists ( select 重复字段名称 from tb_history where 重复字段名称= th.重复字段名称 and 筛选条件 )
MySQL 去重并保留指定一条数据
最新推荐文章于 2024-05-16 09:35:14 发布
SELECT * FROM tb_history th where not exists ( select 重复字段名称 from tb_history where 重复字段名称= th.重复字段名称 and 筛选条件 )