标签:server sql 计算 date get class weight add logs
DECLARE @begin_date DATETIME,@end_date DATETIME; SELECT @begin_date = CONVERT(DATETIME,CONVERT(CHAR(10), DATEADD(DAY,-2,GETDATE()),120) + ‘ 00:00:00‘,120); SELECT @end_date = CONVERT(DATETIME,CONVERT(CHAR(10), GETDATE(),120) + ‘ 23:59:59‘,120); SELECT @begin_date AS 开始时间,@end_date AS 结束时间;
标签:server sql 计算 date get class weight add logs
原文地址:http://www.cnblogs.com/xakml/p/6370874.html