问题描述
用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:分组-》排序-》取最新

问题描述
用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:分组-》排序-》取最新
相关文章:

网公网安备:皖ICP备2020019022号-8 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主