Oracle时间戳数据类型 [英] Oracle timestamp data type
本文介绍了Oracle时间戳数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
不带参数和带参数0的时间戳数据类型有什么区别:
what is the different between timestamp data type without parameter and with parameter 0:
timestamp
VS timestamp(0)
推荐答案
括号中的数字指定要存储的小数秒的精度.因此,(0)
表示不存储任何一秒的时间,而仅使用整秒.如果未指定,则默认值为小数点分隔符后的6位数字.
The number in parentheses specifies the precision of fractional seconds to be stored. So, (0)
would mean don't store any fraction of a second, and use only whole seconds. The default value if unspecified is 6 digits after the decimal separator.
因此,未指定的值将存储日期,例如:
So an unspecified value would store a date like:
TIMESTAMP 24-JAN-2012 08.00.05.993847 AM
并指定(0)
仅存储:
TIMESTAMP(0) 24-JAN-2012 08.00.05 AM
这篇关于Oracle时间戳数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文