仅在 SQL Server 2005 中存储日期 [英] Storing the date Only in SQL Server 2005
本文介绍了仅在 SQL Server 2005 中存储日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何避免在 SQL Server 中存储 datetime
的时间部分,即如果我的值是 2011-01-01 00:00:00.000
我只想存储 2011-01-01
?
How do I avoid storing the time portion of a datetime
in SQL Server, i.e. if I have a value of 2011-01-01 00:00:00.000
I want to store only 2011-01-01
?
我想确保只存储日期部分.
I want to ensure that only the date portion is stored.
推荐答案
这篇关于仅在 SQL Server 2005 中存储日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文