Returns the current timestamp of the database server. This function is an additional function of MaxCompute V2.0.
Syntax
timestamp current_timestamp()
Return value
A value of the TIMESTAMP type is returned.
Examples
-- The return value is '2017-08-03 11:50:30.661'.
set odps.sql.type.system.odps2=true;
select current_timestamp();
Related functions
CURRENT_TIMESTAMP is a date function. For more information about functions related to date computing and conversion, see Date functions.