Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
update log_data SET `timestamp` = `timestamp` + INTERVAL 1 DAY WHERE id >= 1000 LIMIT 1000;
SELECT datetime + INTERVAL 10 YEAR + INTERVAL 3 MONTH + INTERVAL 22 DAY
+ INTERVAL 10 HOUR + INTERVAL 30 MINUTE AS new_date_time FROM table;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.