How to get millis of timestamp since 1970 UTC in Oracle SQL? -
i have table 1 of columns of type timestamp(6)
.
how milliseconds of column's data since 1970 utc
?
try this
select (cast(your_column date) - date '1970-01-01')*24*60*60 your_table;
i have table 1 of columns of type timestamp(6)
.
how milliseconds of column's data since 1970 utc
?
try this
select (cast(your_column date) - date '1970-01-01')*24*60*60 your_table;
Comments
Post a Comment