In my table I have a field named eventdate
in datetime
format like 2010-05-11 00:00:00
.
How do i make a query so that it adds one day to the eventdate
eg if today is 2010-05-11
, i want to show in where
clause to return all records with tomorrow's date.
Update:
I tried this:
select * from fab_scheduler where custid = 1334666058 and DATE_ADD(eventdate, INTERVAL 1 DAY)
But unfortunately it returns the same record even if i add an interval greater than 1.
Result:
2010-05-12 00:00:00
But i only want to select records with tomorrow's date.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…