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

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -