用from的方法查找每个栏目下的最新商品,为什么查找出来的结果不正确

【字号: 日期:2024-01-09浏览:42作者:雯心

问题描述

用from的方法查找每个栏目下的最新商品,为什么查找出来的结果不正确

select goods_id,cat_id,goods_name from (select * from goods where 1 order by cat_id asc,goods_id desc)as tep group by cat_id;

问题解答

回答1:

分组-》排序-》取最新

相关文章: