SELECT CAST(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP )* 1000 AS int8),to_char(to_timestamp(CAST(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP )* 1000 AS int8) / 1000) AT TIME ZONE ‘PRC‘, ‘yyyy-mm-dd hh24:mi:ss‘)
2022-09-16 09:45:42
SELECT CAST(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP )* 1000 AS int8),to_char(to_timestamp(CAST(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP )* 1000 AS int8) / 1000) AT TIME ZONE ‘PRC‘, ‘yyyy-mm-dd hh24:mi:ss‘)
下一篇:MYSql 触发器