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) 

原文地址:https://www.cnblogs.com/start-fxw/p/5782813.html