----- query interval problem encountered in the project

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.

Guess you like

Origin www.cnblogs.com/yunliu0603/p/10993943.html