mysql join 数据去重

select $select from  hlyun_cost_vouchers left join (select VoucherId,BillId from hlyun_cost_index_vouchers_bills group by VoucherId) as hlyun_cost_index_vouchers_bills on hlyun_cost_index_vouchers_bills.VoucherId=hlyun_cost_vouchers.ID where $sql

  

posted @ 2020-03-24 10:30  佚小名  阅读(759)  评论(0编辑  收藏  举报