sql - Mysql previous date -


i using following have previous date data @ 00.00.00

select * perf timestamp="subdate(curdate(),1)"; 

but not resulting output

where

select * perf timestamp="2014-11-28"; 

resulting proper output

can of please me in trying find out issue.any appreciated.

check subdate() function

try this:

select *  perf date(timestamp) = subdate(curdate(), interval 1 day); 

Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -