postgres的查询重复sql记录 select bill_code,count(1) from t_fee_agencyfee_bill GROUP BY bill_code HAVING count(*) > 1 group by 根据前面查询的字段来分组的。 工作中会用到的。