I am trying to use Datediff
to find out the duration between columnA
and 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.