简体   繁体   English

DBMS中的分数秒精度

[英]Fractional Second precision in DBMSs

I would like to know what Fractional Second Precision is, with some examples. 我想通过一些例子来了解Fractional Second Precision
And how different DBMSs support it? 以及不同的DBMS如何支持它?

Sql Server 2008 and newer has DATETIME2 which is has precision of 100ns Sql Server 2008和更新版本的DATETIME2精度为100ns

Character length 19 positions minimum (YYYY-MM-DD hh:mm:ss ) to 27 maximum (YYYY-MM-DD hh:mm:ss.0000000) 字符长度最小为19个位置(YYYY-MM-DD hh:mm:ss)至27最大值(YYYY-MM-DD hh:mm:ss.0000000)


Precision, scale 0 to 7 digits, with an accuracy of 100ns. 精度,0到7位数,精度为100ns。 The default precision is 7 digits. 默认精度为7位数。

http://msdn.microsoft.com/en-us/library/bb677335.aspx http://msdn.microsoft.com/en-us/library/bb677335.aspx


- MySQL 5.6.4 - MySQL 5.6.4

MySQL 5.6.4 and up expands fractional seconds support for TIME, DATETIME, and TIMESTAMP values, with up to microseconds (6 digits) precision: MySQL 5.6.4及更高版本扩展了对TIME,DATETIME和TIMESTAMP值的小数秒支持,精度高达微秒(6位):

http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM