oracle timestamp example: 26-APR-17 09.40.13.243356000
Hi i have a scenario I am converting oracle timestamp to postgres timestamp but the output is not expected .
Query run in psql
migration=# SELECT TO_TIMESTAMP('26-APR-17 09.40.13.243356000','DD-MON-YY HH24.MI.SS:MS') :: timestamp without time zone;
to_timestamp
----------------------------
2017-04-26 09:15:55.864128 ----- this is output
(1 row)
The output should be: 2017-04-26 09:40:13.243356

YYYY-MM-DDTHH:MM:SS.ffffZorYYYY-MM-DDTHH:mm:ss.ffff+HH:mm