把sql sever语句改为mysql,小弟初学,希望能得到答复,关键是语法的改写。谢谢啦

sqlsever语句:select*from(selecttop10*from(selectsum(number)asamount,ISBNfromtb_Order_de... sql sever语句:select * from (select top 10 * from ( select sum(number) as amount,ISBN from tb_Order_detail group by ISBN )as tab order by amount desc) o inner join tb_bookinfo b on o.ISBN=b.ISBN order by o.amount desc 展开
 我来答
flyingFish211
2012-05-11 · TA获得超过2.1万个赞
知道大有可为答主
回答量:1.5万
采纳率:50%
帮助的人:1.1亿
展开全部
select * .
from (select * from ( select sum(number) as amount,ISBN from tb_Order_detail group by ISBN )as tab order by amount desc limit 0, 10) o
inner join tb_bookinfo b on o.ISBN=b.ISBN order by o.amount desc
追问
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.
from (select * from ( select sum(number) as amount,ISBN from tb_Order_detail ' at line 1
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式