Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

obter 2 dias atrás consulta no mysql

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