在SQL 中用datediff(mi,date1,date2) 计算分钟的相差数,结果比实际差距总是多2分钟,求解!!
你用具体的时间试试,
select datediff(mi, cast('2011-01-14 08:14:53.390' as datetime),cast('2011-01-14 08:18:18.090' as datetime)) as diffMinute
能不能把你的具体时间贴出来瞧瞧