根据条件删除分组后最大数据外以外的其他数据

	 delete from 表 where id not in (select max(id) from 表  WHERE  字段名='xxx' group by contract_guid) AND 字段名='xxx'

Guess you like

Origin blog.csdn.net/q1923408717/article/details/119183443