mysql语句问题

select * from (select goods_id,cat_id,goods_name,shop_price from goods order by cat_id asc,shop_price desc)  tmp group by cat_id  ;

这个语句不能允许

需要

1.create table op (select goods_id,cat_id,goods_name,shop_price from goods order by cat_id asc,shop_price desc);

2.select * from op group by cat_id;

这是什么原因啊?


遇见2022
浏览 1072回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

SQL Server