6.3索引优化策略
select ...... from product
where to_days(out_date)-to_days(current_data)<=30select ...... from product
where out_date<=date_add(current_date,interval 30 day)Last updated
select ...... from product
where to_days(out_date)-to_days(current_data)<=30select ...... from product
where out_date<=date_add(current_date,interval 30 day)Last updated