FROM_ISO8601_TIMESTAMP
播放为时间戳(6)
PARSE_DATETIME
data: 2024-02-28 17:26:51.292534 UTC
typeof: timestamp(6) with time zone
from_iso8601_timestamp('2024-02-28T14:26:51.292534-03:00') AT TIME ZONE 'UTC'
为您提供想要的东西:
2024-02-28 17:26:51.292000 UTC
timestamp(6) with time zone
,因此总共需要:
CAST(from_iso8601_timestamp('2024-02-28T14:26:51.292534-03:00') AT TIME ZONE 'UTC' AS timestamp(6) WITH TIME ZONE)
检查一种类型,做:
SELECT typeof(thing above)