SELECT
sum(money) as m,
equipment_id
FROM lyb_equipment_profit
WHERE user_id
= 100 GROUP BY equipment_id
SELECT
sum(money) as m,
equipment_id
FROM lyb_equipment_profit
WHERE user_id
= 100 GROUP BY equipment_id
本文标题:分组后 求和
本文链接:https://www.haomeiwen.com/subject/qwelfhtx.html
网友评论