首页 > TAG信息列表 > ryrq

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(*) >

mybatis foreach split

<!-- 三管监测 --><select id="rep_sgjc" parameterType="JkHisZybrcryxxb" resultType="map"> select a.id,a.dqksmc,a.zyid,a.zycs,a.brxm,a.xb,a.ch,a.ryzd,date_format(a.ryrq,'%Y-%m-%d') ryrq, date_format(a.cyrq