mysql怎么查近七天的数据?(不包含当天)

要查不含当天的近七天数据该怎么查
要查不含当天的近七天数据该怎么查
要查不含当天的近七天数据该怎么查

select t.*
from t
where 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')