1筛选某个字段重复的次数列表集合
SELECT customer_id, COUNT(*) AS count FROM trade WHERE turn ="toSaveTrade" AND err_type!=1 GROUP BY customer_id HAVING count>1 ORDER BY count 从trade表中筛选customer_id重复字段,并且turn是"toSaveTrade" err_type!=1 根据customer_id来分组,并且统计的customer_id集合count次数要大于1,然后根据count排序一次