sql - Oracle Timestamp before 1970 - seconds value incorrect -
the following sql run on oracle 11g returns incorrect 'seconds' value dates before 1970-01-01 when fractional seconds present.
is there wrong sql?
alter session set nls_timestamp_format='ss'; select to_timestamp('1969-12-31 23:59:59 0','yyyy-mm-dd hh24:mi:ss ff') ts1, to_timestamp('1969-12-31 23:59:59 1','yyyy-mm-dd hh24:mi:ss ff') ts2, to_timestamp('1970-01-01 00:00:00 1','yyyy-mm-dd hh24:mi:ss ff') ts3 dual; ts1 ts2 ts3 59 58 00
Comments
Post a Comment