环境:Mysql 对 where in 的结果集进行筛选,保留第一条
如:
select a,b,c from table where a in ("123","456","789");
结果:
123 1111 2222
123 1111 3333
456 1111 2222
456 1111 3333
789 1111 2222
需求:保留符合条件的第一条
123 1111 2222
456 1111 2222
789 1111 2222
请问大佬们,这种怎么查询能直接筛选出来,不用 delete