名词解释:date_sub(current_date,N) 取当前日期N天前的数据select * from a where ymd between date_sub(current_date,10) and date_sub(current_date,3) ;上述sql表示查询当前日期前3天至前十天的数据。