SQL Developer is returning only the date, not the time. How do I fix this?

后端 未结 7 1042
粉色の甜心
粉色の甜心 2020-12-22 16:08

Here\'s what SQL Develoepr is giving me, both in the results window and when I export:

CREATION_TIME       
------------------- 
27-SEP-12
27-SEP-12
27-SEP-1         


        
7条回答
  •  难免孤独
    2020-12-22 17:06

    Neither of these answers would work for me, not the Preferences NLS configuration option or the ALTER statement. This was the only approach that worked in my case:

    dbms_session.set_nls('nls_date_format','''DD-MM-YYYY HH24:MI:SS''');
    

    *added after the BEGIN statement

    I am using PL/SQL Developer v9.03.1641

    Hopefully this is of help to someone!

提交回复
热议问题