sql - MySQL's now() +1 day -


i'm using now() in mysql query.

insert table set data = '$data', date = now() 

but want add 1 day date (so date should contain tomorrow).
possible?

you can use:

now() + interval 1 day 

if interested in date, not date , time can use curdate instead of now:

curdate() + interval 1 day 

Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

php - Retrieving comment count from fb:comments widget (Facebook) -

c# - NullReferenceException in MySqlClient.NativeDriver -