时间:2021-07-01 10:21:17 帮助过:31人阅读
SELECT *, count(goods_sn) as counter FROM table group by goods_sn order by goods_sn desc
------解决方案--------------------
SELECT COUNT(*) AS CT FROM A ORDER BY id DESC GROUP BY goods_sn;
试看看
------解决方案--------------------
SELECT count(*) as counter FROM table group by goods_sn order by goods_sn desc limit 10