SELECT MAX(id) FROM pdt_i_invoice_detail WHERE deleted = 0 GROUP BY invoice_unique HAVING count(invoice_unique) > 1
SELECT MAX(id) FROM pdt_i_invoice_detail WHERE deleted = 0 GROUP BY invoice_unique HAVING count(invoice_unique) > 1
评论区