Mysql
 sql >> Database >  >> RDS >> Mysql

ottenere 2 giorni fa query in mysql

WHERE timestamp BETWEEN 
        DATE_SUB(DATE(NOW()), INTERVAL 2 DAY)
         AND DATE_SUB(DATE(NOW()), INTERVAL 1 DAY)