标签:subquery bsp inf mysql 执行 mysq 解决 account info
select * from wechat_account_info where id in(select id from wechat_account_info where groupId =‘8‘ ORDER BY id limit 15 ) as s
此句执行中会出现如下错误:
[Err] 1235 - This version of MySQL doesn‘t yet support ‘LIMIT & IN/ALL/ANY/SOME subquery‘
原因:
MYSQL子查询不支持limit
解决办法:
再次使用一层循环
select * from wechat_account_info where id in(
select id from (select id from wechat_account_info where groupId =‘8‘ ORDER BY id limit 15 ) as s )
标签:subquery bsp inf mysql 执行 mysq 解决 account info
原文地址:http://www.cnblogs.com/lccyongz/p/7428099.html