摘要:
以复习为目的吧,整理了自己以前在学习T-SQL时的 常用语句下载获取当前日期时间1 select getdate()2 --结果:2012-07-12 06:20:58.670获取星期几----返回tableCREATE FUNCTION [dbo].[WeekDayName]( )RETURNS @WeekDayName TABLE([Id] INT,[WeekDayName] NVARCHAR(15))ASBEGIN INSERT INTO @WeekDayName ([Id],[WeekDayName]) VALUES (0,'Saturday'),(1,'Sun 阅读全文