阅读背景:

创建一个日期的最简单的方法是在一个月的第一天,给定另一个日期

来源:互联网 

In SQL Server what is the simplest/cleanest way to make a datetime representing the first of the month based on another datetime? eg I have a variable or column with 3-Mar-2005 14:23 and I want to get 1-Mar-2005 00:00 (as a datetime, not as varchar)In SQL Server what is the simplest/cleanest way




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: