date_sub(curdate(), interval dayofweek(curdate())+6 day) 上周初
date_sub(curdate(), interval dayofweek(curdate())-1 day) 上周末
时间: 2024-11-09 00:30:59
date_sub(curdate(), interval dayofweek(curdate())+6 day) 上周初
date_sub(curdate(), interval dayofweek(curdate())-1 day) 上周末