您的位置:首页 > 产品设计 > UI/UE

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

2017-07-19 17:00 1346 查看
--执行失败的sql

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

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

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

感谢原文
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐