CURRENT_TIMESTAMP
in SQL retrieves the current date and time from the database server.
SELECT CURRENT_TIMESTAMP(); |
The CURRENT_TIMESTAMP()
function provides the current date and time.
Note: The output format is either “YYYY-MM-DD HH:MM” (string) or YYYYMMDDHHMMSS.uuuuuu (numeric).
CURRENT_TIMESTAMP() |
Works in: |
From MySQL version 4.0 |
Return the current date and time plus one.
SELECT CURRENT_TIMESTAMP() + 1; |