select
DATE_FORMAT(date,‘%Y%u‘) weeks,
DATE_ADD(date,INTERVAL -WEEKDAY(date) DAY)
from
etl_armory_site_type_num
时间: 2024-11-13 12:41:28
select
DATE_FORMAT(date,‘%Y%u‘) weeks,
DATE_ADD(date,INTERVAL -WEEKDAY(date) DAY)
from
etl_armory_site_type_num