This topic describes how to use the string function LOCALTIMESTAMP in Realtime Compute.

Syntax

timestamp LOCALTIMESTAMP

Input parameters

None

Description

Returns the timestamp of the current system.

Example

  • Test statements
    SELECT 
    LOCALTIMESTAMP as `result`
    FROM T1;
  • Test results
    result (TIMESTAMP)
    2018-07-27 14:04:38.998