13
01/12
SQL SERVER获取星期
-------------------------------------------------------------- --FUNCTION Name:udf_WeekDayName --作者:数据库之家 --FUNCTION :SQL SERVER获取星期 ---------------------------------------------------------- CREATE FUNCTION [dbo].[udf_WeekDayName] ( )RETURNS @WeekDayName TABLE([Id] INT,[WeekDayName] NVARCHAR(15))ASBEGIN INSERT INTO @WeekDayName ([Id],[WeekDayName]) VALUES (0,'Saturday'),(1,'Sunday'),(2,'Monday'),(3,'Tuesday'),(4,'Wednesday'),(5,'Thursday'),...