here's my SQL data .. How to add 1 Hour on the last activity. That after updating it will be 2015-05-01 20:24:42 ? Thank you
lastActivity
2015-05-01 19:24:42
here's my SQL data .. How to add 1 Hour on the last activity. That after updating it will be 2015-05-01 20:24:42 ? Thank you
lastActivity
2015-05-01 19:24:42
U can use the SQL function DATEADD
DATEADD(hh, 1, last_activity)
Example query:
SELECT user_id, DATEADD(hh, 1,last_activity) AS new_activity_date FROM users