要查不含当天的近七天数据该怎么查要查不含当天的近七天数据该怎么查要查不含当天的近七天数据该怎么查
select t.*from twhere t.create_time < str_to_date(date_format(now(), '%Y-%m-%d'), '%Y-%m-%d')and t.create_time >= str_to_date(date_format(date_add(now(),INTERVAL -7 DAY), '%Y-%m-%d'), '%Y-%m-%d')