Now
suggest changeSELECT Now();
Shows the current server date and time.
UPDATE `footable` SET mydatefield = Now();
This sets mydatefield on every row to the current date and time in the session time zone, not a time zone stored in the column. Add a WHERE clause unless you mean every row. For example:
'2016-07-21 12:00:00'
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents