Such as:
There may be encountered in the query like this, a week or a month or a year of operation then how to do it?
DATE_SUB () function from the date minus a specified time interval:
DATE_SUB (NOW (), INTERVAL: timeNum DAY) timeNum front end may pass the actual value.