Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
计数查询
很久以前,我想我可以用idiorm 计算页面上的总查询数。
现在我不知道它是如何完成的。有什么参考吗?
可以请求会话Questions状态变量的值:
Questions
$questions = ORM::for_table(null) ->raw_query('SHOW STATUS LIKE ?', ['Questions']) ->find_one() ['Value'];