按周統計數據,並獲取本週第一天與本週最後一天

SELECT DATE_FORMAT(CREATE_TIME,'%Y%u') weeks,CONVERT(CREATE_TIME,CHAR(10)) AS createTime, (SELECT DATE_ADD(createTime,INTERVAL - WEEKDAY(createTime) DAY)) AS firstDayForWeek, (SELECT DATE_ADD(c
相關文章
相關標籤/搜索