TEL:150-0382-3679
新闻资讯 News Center
建站知识 / 公司动态
sql日期函数,两字段间隔分钟数
select top 1 id,datediff( minute,logintime,logouttime) as minutes from UserLoginLog where DATEDIFF(day, logintime, '2011-8-29')=0 and DATEDIFF(day, logouttime, '2011-8-29')=0
logintime,logouttime两个日期字段
两字段间隔分钟数:datediff( minute,logintime,logouttime) 
where条件获得某一天的记录
DATEDIFF(day, logintime, '2011-8-29')=0
一站式全网营销,您身边的网络营销顾问,为您一对一私人定制符合您实际需求的网络营销实施方案!
24小时咨询热线:
150-0382-3679