码迷,mamicode.com
首页 > 数据库 > 详细

This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery' 错误解决

时间:2016-05-04 23:03:27      阅读:447      评论:0      收藏:0      [点我收藏+]

标签:

原因是内层select语句带有limit子句。

原:

update stu_score_childen A  set  A.fScore=‘-1‘ where  A.fID in (select B.fID from stu_score_childen B limit 0,50 )

更改后的

update stu_score_childen A  set  A.fScore=‘-1‘ where  A.fID in (select C.fID from (select B.fID from stu_score_childen B limit 0,50 ) C)

绕过带有limit的select就可以了

This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery' 错误解决

标签:

原文地址:http://www.cnblogs.com/pengyawn/p/5459922.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!