文章詳情頁(yè)
SQL Server 某些條件下求某日的日期
瀏覽:112日期:2023-10-29 14:09:56
/*需要得結(jié)果: 某一天的日期已知條件: 這天的年,月,星期幾,在這個(gè)月中處于第幾周
舉例說(shuō)明:; 希望求出2004-11-22已知條件: 2004年,; 11 月,; 星期一 ,這天在11月是第四周
declare @year numeric(4),@month numeric(2),@weekday varchar(6),@week numeric(1)set @year=2004set @month=11set @weekday='星期一'set @week=4*/
alter function RequestDate (@year numeric(4),@month numeric(2),@weekday varchar(6),
標(biāo)簽:
Sql Server
數(shù)據(jù)庫(kù)
排行榜
