MySQL LOCALTIMESTAMP() Function
ExampleGet your own SQL Server
Return current date and time:
SELECT
LOCALTIMESTAMP();
Try it Yourself »
Definition and Usage
The LOCALTIMESTAMP() function returns the current date and time.
Note: The date and time is returned as "YYYY-MM-DD HH-MM-SS" (string) or as YYYYMMDDHHMMSS.uuuuuu (numeric).
Syntax
LOCALTIMESTAMP()
Technical Details
Works in: | From MySQL 4.0 |
---|