作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我声明了一个名为 @dt 的日期时间变量 -
declare @dt Datetime = '2019-01-29 11:06:31.095'
当我选择变量时,它给出了错误的日期
select @dt --it gives '2019-01-29 11:06:31.097'
最佳答案
根据manual :
datetime values are rounded to increments of .000, .003, or .007 seconds, as shown in the following table.
所提供链接中的表格清楚地说明了您的值从 '.095'
转换为 '.097'
的原因:
User-specified value System stored value
-----------------------------------------------
01/01/98 23:59:59.999 1998-01-02 00:00:00.000
01/01/98 23:59:59.995
01/01/98 23:59:59.996
01/01/98 23:59:59.997
01/01/98 23:59:59.998 1998-01-01 23:59:59.997
关于sql - 申报日期与选定日期不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54434855/
我正在编写一些代码,用于将 Silverlight View 绑定(bind)到 MVP 模式中的演示者。在这种特殊情况下,一遍又一遍地执行此操作是一项非常漫长的练习: 型号: public bool
我是一名优秀的程序员,十分优秀!