sql语句 两表关联查询计算数量 select sum(a1.`num`) from `order_orderlistrow` as a1 INNER JOIN `order_orderlist` as a2 on a1.`order_orderlist_id` = a2.`id` where a1.`goods_good_id` =\'54\' and a2.`state` <> \'0\' 相关文章: 2021-06-29 2022-12-23 2021-05-07 2021-12-05 2021-11-30 2021-05-19 2022-12-23 2022-12-23