Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

select records for day before yesterday mysql

#Since yesterday
select * from orders where created_at > (CURDATE() - INTERVAL 1 DAY)
#the day before yesterday and yesterday
SELECT * from orders where created_at BETWEEN (CURDATE()- INTERVAL 2 DAY) AND (CURDATE()- INTERVAL 1 DAY);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #records #day #yesterday #mysql
ADD COMMENT
Topic
Name
3+4 =