// The given query add a interval of 31 days to the '2012-04-15'. ADDDATE('2012-04-15 16:30:30', INTERVAL 2 DAY); // Output: 2012-04-17 16:30:30 ADDDATE('2012-04-15 16:30:30', INTERVAL 3 HOUR); // Output: 2012-04-17 19:30:30 ADDDATE('2012-04-15 16:30:30', INTERVAL 45 MINUTE); // Output: 2012-04-17 17:15:30 ADDDATE('2012-04-15 16:30:30', INTERVAL 15 SECOND) // Output: 2012-04-17 16:30:45 //Sample MySQL Query SELECT ADDDATE(date_user_created, INTERVAL 3 HOUR) as length_of_quote FROM users where user_id='23'
My Amazon Store
No comments:
Post a Comment
Please post any queries and comments here.