Is it possible to set the default value of a datetime MySQL field to todays date + 30?
If so, how?!?
I don’t think so; I’ve not found anything that can do that type of logic anyway…
You might try the DATEADD command… also, the MySQL doc page might be useful: http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
HTH…
Yeah, I tried setting the default value as DATE_ADD(CURDATE(), INTERVAL 30 DAY) but I get an invalid sql error…
Thanks Anyway!
{ 2 } Comments
I don’t think so; I’ve not found anything that can do that type of logic anyway…
You might try the DATEADD command… also, the MySQL doc page might be useful:
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
HTH…
Yeah, I tried setting the default value as DATE_ADD(CURDATE(), INTERVAL 30 DAY) but I get an invalid sql error…
Thanks Anyway!
Post a Comment