The solution to the between and processing time interval in mysql does not include the right boundary (three solutions)

1. Add one day to the date: BETWEEN '2017-04-01' AND DATE_ADD('2017-04-04',INTERVAL 1 DAY); 

2. Character splicing: splicing the date on 23:59:59

3. Process the field: date_format(oper_date,'%Y-%m-%d')

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325830089&siteId=291194637