mysql将一个表中有相同字段值的记录合并

2024-12-02 08:56:34
推荐回答(2个)
回答1:

select m1, sum(m2) from ABC group by m1;

回答2:

select m1, sum(m2) from ABC group by m1 order by desc;