我想将可读时间戳转换为 UNIX 时间。
例如:我想转换2018-08-24 18:42:16
为1535136136000
.
这是我的语法:
TO_UNIXTIME('2018-08-24 06:42:16') new_year_ut
我的错误是:
SYNTAX_ERROR: line 1:77: Unexpected parameters (varchar(19)) for function to_unixtime. Expected: to_unixtime(timestamp) , to_unixtime(timestamp with time zone)