`
wangwei4819
  • 浏览: 2092 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

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

阅读更多
MySQL5.1中子查询是不能使用LIMIT的,
会报错: “This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME subquery’ ”



比如这样的语句是不能正确执行的。
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)

这样就可以绕开limit子查询的问题。
问题解决。
分享到:
评论

相关推荐

    基于mysql查询语句的使用详解

     但是运行的时候会报 This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME subquery 这个的意思是表示子查询的时候不支持limit ,还有一点我就是很二了 就是查询的时候用not in 效率非常不高 ...

    MySQL无法安装的解决方案

    最近在维护服务器的时候,突然发现MySQL无法使用了,于是在“控制面板”-添加/删除程序“中删除了MySQL,重启了一下服务器再安装MySQL。 本来以为可以一路很顺利地Next下去的,但是事与愿违。运行“MySQL Server ...

    mysql 5.1.59

    MySQL Server 5.1 This is a release of MySQL, a dual-...in any of several formats at the URL given earlier in this file. Source distributions include a local copy of the manual in the Docs directory.

    delphi 7 gif控件

    // and it doesn't release the handle of the source bitmap which // // is used to assign to the GIF object as in gif.assign(bm); // // These changes were made as a result of a news post made by Renate ...

    mysql-5.5.14.tar.gz

    chown -R mysql:mysql /usr/local/mysql cp support-files/my-medium.cnf /etc/my.cnf cd /usr/local/mysql/ ./scripts/mysql_install_db --user=mysql /usr/local/mysql/bin/mysqld_safe --user=mysql & ...

    mysql-8.0.20-macos10.15-x86_64.tar.gz

    _mysql 40907 0.4 2.1 4907248 350300 s000 S 5:46下午 0:00.95 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql...

    一个跨平台的CString源码

    // If you find any bugs in this code, please let me know: // // jmoleary@earthlink.net // http://www.joeo.net/stdstring.htm (a bit outdated) // // The latest version of this code should always ...

    MySQL 5.7 Reference Manual 官方参考手册

    Abstract ... If you have any questions about the features included in your edition of MySQL 5.7, refer to your MySQL 5.7 license agreement or contact your Oracle sales representative.

    MySQL 5.7 Reference Manual 官方参考手册(HTML版)

    Abstract ... If you have any questions about the features included in your edition of MySQL 5.7, refer to your MySQL 5.7 license agreement or contact your Oracle sales representative.

    RealToon 5.2.1 卡通动漫风格着色器.txt

    - You can also use this in creating Anime/Cartoon film & Illustrations/Arts in unity3d. - You can also use this in making VTuber works with or without real-time shadows. - Can now be used in 2D type ...

    yum yum doesn't match version of Python

    yum yum doesn't match version of Python 终极解决方案

    This is new version of a family address book that I released

    This is new version of a family address book that I released some time ago. This time around I mostly use ADO instead of DAO and now the user isallowed to add or remove any category of their choice.

    MySQL 5.7 Reference Manual

    This manual describes features that are not included in every edition of MySQL 5.7; such features may not be included in the edition of MySQL 5.7 licensed to you. If you have any questions about the ...

    mysql的常见错误解决

    mysql的常见错误解决:一.在进入mysql数据库时出错;二、在创建数据库时报错。

    MySQL Connector/J

    MySQL Connector/J is a JDBC-3.0 Type 4 driver, which means that is pure Java, implements version 3.0 of the JDBC specification, and communicates directly with the MySQL server using the MySQL protocol...

    PHP and MySQL by Example.pdf

    Is this yet another world in isolation? Since my first meeting with Marko, I was challenged to bring these technologies together. When Prentice Hall agreed to publish our book, the learning curve ...

    Sort list based on text/numeric/date-time in any column按列

    Sort list based on text/numeric/date-time in any column按列表的文本数值时间排序(3KB)

    端口查看工具

    All Filters', which doesn't allow you to return back the filters. * Version 1.70: o Added /sort command-line option for sorting the connections list saved from command-line. * Version 1.66: o ...

    How to use the NFS Client c# Library

    The current version doesn't support NFS v4.1 yet. Moved to https://github.com/nekoni/nekodrive https://www.cnblogs.com/czytcn/p/8305775.html https://github.com/nekoni/nekodrive ...

    php.ini-development

    Turning on this setting and managing its maximum buffer size can yield some ; interesting side-effects depending on your application and web server. ; You may be able to send headers and cookies ...

Global site tag (gtag.js) - Google Analytics