📜  每日每周每月生成报告 php mysql - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:21.898000             🧑  作者: Mango

代码示例1
SELECT COUNT(*), DAY(timestamp), WEEK(timestamp), MONTH(timestamp), YEAR(timestamp) FROM transaction GROUP BY YEAR(timestamp), MONTH(timestamp), WEEK(timestamp), DAY(timestamp)