LOCALTIMESTAMP is an ANSI SQL standard datetime function that yields the current timestamp based on the database server\u2019s local clock, but does not include a time zone component. Unlike CURRENT_TIMESTAMP, which may return a value with time zone, LOCALTIMESTAMP delivers a timestamp \"without time zone\" (PostgreSQL) or a DATETIME value (MySQL, Oracle). The value is computed at statement start, so multiple calls within a single statement return the same result. Precision (fractional seconds) follows the database default or an optional precision argument where supported. Because the function is deterministic within a statement, it is safe for default column values, auditing, and temporal calculations where time zone conversion is not desired.
CURRENT_TIMESTAMP, LOCALTIME, NOW(), SYSDATE, TIMEZONE
SQL:1999
It returns the current date and time from the server clock without any time zone offset.
CURRENT_TIMESTAMP can include a time zone. LOCALTIMESTAMP never does, making it ideal when you want a plain timestamp.
In most databases you must omit parentheses unless supplying a precision value, for example LOCALTIMESTAMP(3).
No. Use GETDATE() in SQL Server or datetime('now') in SQLite instead.