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

问题:

  不支持使用 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) 

posted @ 2016-08-18 09:37  start逍遥  阅读(264)  评论(0编辑  收藏  举报