I have read some reference about Netezza, but I cannot figure out how to convert timestamp/datetime value to 13-digit UNIX time millis.
Any suggestion or ideas?
Postgres offers the extract(epoch from . . .)
function that does exactly what you want:
select extract(epoch from <datetimecol>) * 1000
This has been in Postgres for a long time, so I would guess that Netezza also supports it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.