oracle - Error ORA-01821 "date format not recognized" -
i trying alter session date format "yyyy-mm-dd hh:mi:ss:ff6"
alter session set nls_date_format = 'yyyy-mm-dd hh:mi:ss:ff6'
is i'm trying use , it's giving me error ora-01821 "date format not recognized".
what doing wrong?
the oracle date
type has second-level precision (as opposed to, say, microsecond-level precision), date formats don't support ff
notation. if want microseconds appended, can write:
alter session set nls_date_format = 'yyyy-mm-dd hh:mi:ss:"000000"';
alternatively, maybe wanted set default timestamp format? if so:
alter session set nls_timestamp_format = 'yyyy-mm-dd hh:mi:ss:ff6';
Comments
Post a Comment