以下SQL Server声明的含义是什么:datetime2(7)? [英] What is the meaning of the following SQL Server declaration: datetime2(7)?
本文介绍了以下SQL Server声明的含义是什么:datetime2(7)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在SQL Server查询中,有: datetime2(7)
.
我知道 datetime2
,但是我不理解(7)
.
Inside a SQL Server query, there is: datetime2(7)
.
I know datetime2
, but I don't understand (7)
.
您能解释(7)
的含义吗?
推荐答案
datetime2 [ (fractional seconds precision) ]
根据MSDN文档,这是秒精度.
It's the fractional seconds precision according to the MSDN documentation.
http://msdn.microsoft.com/en-us/library/bb677335.aspx
这是4的Microsoft示例:
This is the microsoft example of 4:
DECLARE @datetime2 datetime2(4) = '12-10-25 12:32:10.1234';
所以我假设7是:
DECLARE @datetime2 datetime2(7) = '12-10-25 12:32:10.1234567';
这篇关于以下SQL Server声明的含义是什么:datetime2(7)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文