[英]using DateDiff to find duration in minutes
I am trying to use Datediff
to find out the duration between columnA
and columnB
. 我试图使用
Datediff
找出columnA
和columnB
之间的持续时间。
SELECT datediff (minute, stime, etime)
from Exceptions2
where stime = [exceptions2].starttime
and etime = [exceptions2].endtime
This produces errors. 这会产生错误。 Can anyone please help me with what I'm doing wrong?
任何人都可以帮我解决我做错的事吗?
如何尝试这个,不知道为什么你有stime = [exceptions2] .starttime和etime = [exceptions2] .endtime
SELECT datediff(minute, starttime, endtime) from Exceptions2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.