在MySQL4.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 10);

但是,,但是,,,只要你再来一层就行。。如:
select * from table where id in (select t.id from (select * from table limit 10)as t)

你说说,MySQL是不是很让人无语??

相关文章:

  • 2021-07-15
  • 2021-12-04
  • 2022-02-03
  • 2021-10-13
  • 2021-07-16
  • 2021-11-19
  • 2021-11-09
  • 2021-05-24
猜你喜欢
  • 2021-11-12
  • 2022-01-15
  • 2022-12-23
  • 2021-09-29
  • 2021-12-04
  • 2021-06-04
  • 2021-06-19
相关资源
相似解决方案