Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read NLS_DATE_FORMAT?

Tags:

sql

oracle

How do I read the current value of NLS_DATE_FORMAT in the oracle db?

like image 386
Roland Avatar asked Jun 19 '15 15:06

Roland


1 Answers

In current sesion (client) settings:

select *
from nls_session_parameters
where parameter = 'NLS_DATE_FORMAT';

and in global database parameters:

select *
from nls_database_parameters
where parameter = 'NLS_DATE_FORMAT';

Demo: http://sqlfiddle.com/#!4/9eecb7/3282

like image 102
krokodilko Avatar answered Sep 27 '22 16:09

krokodilko