08 2023 档案
摘要:如果你的表是按年份命名的,例如 table_2021, table_2022, table_2023, table_2024, table_2025,你可以考虑使用分区查询来优化查询性能 SELECT * FROM table_2021 UNION ALL SELECT * FROM table_2
阅读全文
摘要:<?php //根据日期来统计所消耗的点数 //模型的使用方法 $result = $model ->field("id,FROM_UNIXTIME(createtime,'%Y-%m-%d') as `createtime`,sum(price) as count_price") ->group(
阅读全文
摘要:1 function formatID($id) { 2 if ($id >= 10000) { 3 return strval($id); 4 } else { 5 return sprintf("%05d", $id); 6 } 7 } function formatID($id) { retu
阅读全文
摘要:$arr = [ [ 'id' => 123, 'test' => ['id' => 2, 'title' => "测试",'test3'=>['list'=>123]] ] ]; $field = "test.test3.list"; foreach($arr as $k=>$v){ $resul
阅读全文

浙公网安备 33010602011771号