mysql子查询用limit报错( “This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME subquery’ ”)

Dear 丶 2022-06-12 08:10 210阅读 0赞

--执行失败的sql

  1. select * from table where id in (select id from table limit 10);

改为如下,子查询多嵌套一层

  1. select * from table where id in (select t.id from (select * from table limit 10)as t)

感谢原文

发表评论

表情:
评论列表 (有 0 条评论,210人围观)

还没有评论,来说两句吧...

相关阅读