Retrieve the current date and time.
SELECT NOW(); |
The NOW() function retrieves the current date and time.
Please note that the date and time are returned in either “YYYY-MM-DD HH-MM-SS” (string) or YYYYMMDDHHMMSS.uuuuuu (numeric) format.
NOW() |
Works in: |
From MySQL version 4.0 |
Retrieve the current date and time incremented by 1 unit.
SELECT NOW() + 1; |