SELECT max(pp.totalPrice) FROM ( SELECT sum(oi.product_price) totalPrice FROM `order.item` oi GROUP BY oi.id ) as pp
SELECT oi.id, oi. sum(oi.product_price) AS pp FROM `order.item` oi GROUP BY oi.id order by pp desc limit 1
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-09 19:32:16