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)
有没有老铁知道为什么会这样
之前使用sqlite在windows上跑的很好,一点毛病没有
转到linux后,六七个人同时访问网站,出现了严重的延迟问题,不知道为什么读写性能很差, 然而数据库并不大,索引也都有
于是今天就转到mysql,遇到了这个问题
另外还有一个问题,mysql字段默认值无法自定义为当前时间戳么,查了一下好像不支持,于是都转为datetime了
@echo醉老仙,你是
php
嘛?profile
看看哪里速度慢?(网上随便找的图)
