0
如何將字符串2017-06-20T09:52:33+0000
轉換爲時間戳2017-06-20 09:52:33
。我試過,但我還是拿到了最後+00
:redshift to_timestamp()without millisecond
select to_timestamp(substring('2017-06-20T09:52:33+0000',1,19), 'YYYY-MM-DD HH24:MI:SS')
>> 2017-06-20 09:52:33+00