每日的充值数据累加
SELECT DATE_FORMAT(posttime,'%Y-%m-%d') day ,SUM(money) total from (此处为数据库)20180818 group by day
每月的充值数据累加
SELECT DATE_FORMAT(posttime,'%Y-%m') month ,SUM(money) total from (数据库名) group by month
每日的充值数据累加
SELECT DATE_FORMAT(posttime,'%Y-%m-%d') day ,SUM(money) total from (此处为数据库)20180818 group by day
每月的充值数据累加
SELECT DATE_FORMAT(posttime,'%Y-%m') month ,SUM(money) total from (数据库名) group by month