This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery


This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'的意思是,這版本的 MySQL 不支持使用 LIMIT 子句的 IN/ALL/ANY/SOME 子查詢,即是支持非 IN/ALL/ANY/SOME 子查詢的 LIMIT 子查詢。

也就是說,這樣的語句是不能正確執行的。 
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)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM