mysql query to get yesterdays data code example Example: how to get yesterday date in mysql SELECT SUBDATE(NOW(),1);