Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.4k views
in Technique[技术] by (71.8m points)

求高效的php mysql 分页查询方法代码

如题,谢谢

我试过以下方法
select SQL_CALC_FOUND_ROWS * from student
WHERE id < 1000
LIMIT 10,10;
SELECT FOUND_ROWS() as total_count;
但是返回的记录数不准,也许是我的操作不正确,请大佬指教并给出代码
代码不是要求用以上方法,只要高效就好,感谢!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...