在运营网址的时候因各种原因有时候难免会出现重复入库的问题,从而导致平台亏损。
sql查重语句:
select * from 表名 where (关键字段1,关键字段2) in (select 关键字段1,关键字段2 from 表名 where money>0 and model and title LIKE '%结算%' group by 字段1,字段2,字段3,字段4 having count(1) >= 2
以上代码请根据自己的具体情况进行调整。
一个为梦想不断努力的伪文人
在运营网址的时候因各种原因有时候难免会出现重复入库的问题,从而导致平台亏损。
sql查重语句:
select * from 表名 where (关键字段1,关键字段2) in (select 关键字段1,关键字段2 from 表名 where money>0 and model and title LIKE '%结算%' group by 字段1,字段2,字段3,字段4 having count(1) >= 2
以上代码请根据自己的具体情况进行调整。