首页 > 数据库技术 > 详细

sql执行报错--This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'

时间:2016-08-18 10:06:39      阅读:251      评论:0      收藏:0      [点我收藏+]

问题:

  不支持使用 LIMIT 子句的 IN/ALL/ANY/SOME 子查询,即是支持非 IN/ALL/ANY/SOME 子查询的 LIMIT 子查询。

解决:

  将语句:select * from table where id in (select id from table limit 0,10)

  变更为:select * from table where id in (select t.id from (select * from table limit 0,10)as t) 

sql执行报错--This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'

原文:http://www.cnblogs.com/start-fxw/p/5782813.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!