mysql分別按照季,月,周分別統計數據

使用date_format select date_format(current_date(),'%Y年%m月') union all select concat(date_format(current_date(),'%Y年'),quarter(current_date()),'季度') union all select date_format(current_date(),'%Y年%u周')
相關文章
相關標籤/搜索