摘要: <?php /* * @最优整数均分算法 * @param int $number 待平分的数字 * @param int $taotl 平分总个数 */ function getDivideNumber($number, $total) { $divide_number = bcdiv($numb 阅读全文
posted @ 2021-01-30 19:18 玛仙 阅读(469) 评论(0) 推荐(0)
摘要: 1. 直接用limit start, count分页语句, 也是我程序中用的方法: select * from product limit start, count 当起始页较小时,查询没有性能问题,我们分别看下从10, 100, 1000, 10000开始分页的执行时间(每页取20条), 如下: 阅读全文
posted @ 2021-01-30 19:16 玛仙 阅读(139) 评论(0) 推荐(0)