查询给定日期是当年的第几月的sql语句
来源:动视网
责编:小采
时间:2020-11-09 10:02:09
查询给定日期是当年的第几月的sql语句
查询给定日期是当年的第几月的sql语句:查询给定日期是当年的第几月的sql语句 declare @date datetime; set @date = getdate() select datepart(month,@date) [monthofyear]; --返回int型 select datename(month,@date) [monthofyear]; --返回var
导读查询给定日期是当年的第几月的sql语句:查询给定日期是当年的第几月的sql语句 declare @date datetime; set @date = getdate() select datepart(month,@date) [monthofyear]; --返回int型 select datename(month,@date) [monthofyear]; --返回var

查询给定日期是当年的第几月的sql语句:查询给定日期是当年的第几月的sql语句 declare @date datetime; set @date = getdate() select datepart(month,@date) [monthofyear]; --返回int型 select datename(month,@date) [monthofyear]; --返回var
查询给定日期是当年的第几月的sql语句
查询给定日期是当年的第几月的sql语句:查询给定日期是当年的第几月的sql语句 declare @date datetime; set @date = getdate() select datepart(month,@date) [monthofyear]; --返回int型 select datename(month,@date) [monthofyear]; --返回var