Access 不支持 limit 查询.
不过可以变通一下也能实现.
从 page 处取出 pageInt 条记录
字段id 自动编号
PHP代码
"select * from(select top $pageInt * from (select top " . ($page + $pageInt) . " * from table order by id asc) order by id desc) order by id asc"
{192.168.2.102}
本文介绍了一种在Access中实现类似SQL LIMIT查询的方法,通过使用嵌套的TOP子句来分页显示数据,这种方法适用于需要在Access中进行分页查询的场景。
Access 不支持 limit 查询.
不过可以变通一下也能实现.
从 page 处取出 pageInt 条记录
字段id 自动编号
PHP代码
"select * from(select top $pageInt * from (select top " . ($page + $pageInt) . " * from table order by id asc) order by id desc) order by id asc"
{192.168.2.102}
3万+
1321

被折叠的 条评论
为什么被折叠?
