SQL Developer只返回日期,而不是时间。我该如何解决? [英] SQL Developer is returning only the date, not the time. How do I fix this?

查看:162
本文介绍了SQL Developer只返回日期,而不是时间。我该如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是SQL Develoepr在结果窗口和导出时提供给我的信息:

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

以下是运行相同查询/ db的另一部分软件:

  CREATION_TIME 
-------------------
2012-09-27 14:44: 46
2012-09-27 14:44:27
2012-09-27 14:43:53

如何让SQL Developer返回时间?



部分答案:

 
选择TO_CHAR(creation_time,'DD-Mon-YYYY HH24:MI:SS') / pre>

如果有人知道如何设置默认显示完整信息,请在下面回答。



转到工具>首选项>数据库> NLS,并将日期格式设置为MM / DD / YYYY HH24:MI:SS


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-12

Here's what another piece of software running the same query/db gives:

CREATION_TIME       
------------------- 
2012-09-27 14:44:46 
2012-09-27 14:44:27 
2012-09-27 14:43:53 

How do I get SQL Developer to return the time too?

Partial answer:

select TO_CHAR(creation_time,'DD-Mon-YYYY HH24:MI:SS') from 

If anyone knows how to set the default to show the full information, please answer below.

解决方案

Can you try this?

Go to Tools> Preferences > Database > NLS and set the Date Format as MM/DD/YYYY HH24:MI:SS

这篇关于SQL Developer只返回日期,而不是时间。我该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆