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)

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

时间: 2024-07-31 15:50:45

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' 错误解决

原因是内层select语句带有limit子句. 原: update stu_score_childen A  set  A.fScore='-1' where  A.fID in (select B.fID from stu_score_childen B limit 0,50 ) 更改后的 update stu_score_childen A  set  A.fScore='-1' where  A.fID in (select C.fID from (select B.fID from st

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) sql执行报

MySQL----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)

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

his 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) 但

Mysql:This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME 错误解决

From: http://blog.chinaunix.net/uid-22414998-id-2945656.html This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME 错误解决   这次国庆节回来后的测试中,在一个Mysql表达式中使用嵌套查询,出现了这个错误.原因是内层select语句带有limit子句.   在网上查了下,有文章指出: 比如这样的语句是不能正确执行的. select * from tabl

mysql-This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME 错误解决

  这次国庆节回来后的测试中,在一个Mysql表达式中使用嵌套查询,出现了这个错误.原因是内层select语句带有limit子句.   在网上查了下,有文章指出: 比如这样的语句是不能正确执行的. select * from table where id in (select id from table limit 12); 但是,只要你再加一层就行.如: select * from table where id in (select t.id from (select * from table

This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME 错误解决

在一个Mysql表达式中使用嵌套查询,出现了这个错误.原因是内层select语句带有limit子句.   在网上查了下,有文章指出: 比如这样的语句是不能正确执行的. select * from table where id in (select id from table limit 12); 但是,只要你再加一层就行.如: select * from table where id in (select t.id from (select * from table limit 12)as t)

Mysql:This version of MySQL doesn’t yet support 错误

This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME 错误解决 在一个Mysql表达式中使用嵌套查询,出现了这个错误.原因是内层select语句带有limit子句. 在网上查了下,有文章指出: 比如这样的语句是不能正确执行的.  select * from table where id in (select id from table limit 12);  但是,只要你再加一层就行.如:  select * fro

mysql 子查询中 使用 limit

如果sql语句中的子查询包含limit 例如: select * from a where id in (select id from b limit 3) 会报错:This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME subquery' # 解决办法: 1.加一层子查询 例如:select * from a where id in (select t.id from (select id from b limit