问题:
SELECT GETDATE()
Returns: 2008-09-22 15:24:13.790 回报: 2008-09-22 15:24:13.790
I want that date part without the time part: 2008-09-22 00:00:00.000 我希望该日期部分没有时间部分: 2008-09-22 00:00:00.000
How can I get that? 我该怎么办?
解决方案:
参考一: https://stackoom.com/question/TPJ/如何仅从SQL-Server-DateTime数据类型返回日期参考二: https://oldbug.net/q/TPJ/How-to-return-only-the-Date-from-a-SQL-Server-DateTime-datatype
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4301413