日期:2014-05-17 浏览次数:20573 次
DECLARE @date DATETIME SET @date = '2013-08-13 10:12' SELECT CAST(@date AS DECIMAL(10,4)) --用decimal类型,real是近似值,有误差 SELECT cast(41497.4250 as datetime) SELECT DATEADD(MINUTE, 24*0.4250*60, DATEADD(DAY, 41497, 0))