首页 > TAG信息列表 > zycs

MySQL中删除重复数据只保留一条

DELETEFROM jk_his_zybrcryxxb aWHERE (a.brid, a.zycs,a.ryrq) IN ( select * FROM( SELECT brid, zycs,ryrq FROM jk_his_zybrcryxxb GROUP BY brid,zycs,ryrq HAVING count(*) >