【发布时间】:2018-12-25 14:38:12
【问题描述】:
如何使用 PHP 强制执行 SQL 查询,以跳过读取 60.000 行! 我只需要选择前 10 行,这需要生命周期!
SELECT * FROM `tbl_premium_articles` ORDER BY `id_p` DESC LIMIT 10
有什么办法可以让它在一秒内查询?
【问题讨论】:
-
添加
show create table tbl_premium_articles;的输出我几乎可以肯定你没有定义它的索引。