搜索结果
查询Tags标签: 本天,共有 4条记录-
MySQL查询表中最近7天数据(无数据自动补0,不含本天)
MySQL查询表中最近7天数据(无数据自动补0,不含本天) select a.date,ifnull(b.total_count, 0) as total_count,from (SELECT date_sub(curdate(), interval 1 day) as dateunion allSELECT date_sub(curdate(), interval 2 day) as dateunion allSELECT date_sub(curdate…
2022/1/4 19:04:55 人评论 次浏览 -
MySQL查询表中最近7天数据(无数据自动补0,不含本天)
MySQL查询表中最近7天数据(无数据自动补0,不含本天) select a.date,ifnull(b.total_count, 0) as total_count,from (SELECT date_sub(curdate(), interval 1 day) as dateunion allSELECT date_sub(curdate(), interval 2 day) as dateunion allSELECT date_sub(curdate…
2022/1/4 19:04:55 人评论 次浏览 -
python获取本天,本周,本月,本年,上一天,上一周,上一月,上一年的开始及结束日期
python环境为python3.6.5 import datetime import calendardef get_current_day():当日:return:today = datetime.datetime.today()return {"start_date":today.strftime("%Y-%m-%d"),"end_date": today.strftime("%Y-%m-%d")}de…
2021/9/29 17:10:55 人评论 次浏览 -
python获取本天,本周,本月,本年,上一天,上一周,上一月,上一年的开始及结束日期
python环境为python3.6.5 import datetime import calendardef get_current_day():当日:return:today = datetime.datetime.today()return {"start_date":today.strftime("%Y-%m-%d"),"end_date": today.strftime("%Y-%m-%d")}de…
2021/9/29 17:10:55 人评论 次浏览