这个sql语句应该如何写?请帮助。(急)在线等待。 select userip,count(*) from UserLogInfo_tblwhere usercreatedate between dateadd(minute,-10,getdate()) and getdate()group by userip 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*) from UserLogInfo_tbl where userip='10.10.1.1' and datediff(mi,usercreatedate,getdate())<10 select userip userip,count(userip) 数目 from UserLogInfo_tblwhere usercreatedate between dateadd(minute,-10,getdate()) and getdate()group by userip select count(*) as 个数 from UserLogInfo_tbl where userip = '' and usercreatedate >= convert(convert(usercreatedate,int)-10,datetime) select count(*) from userloginto_tbl where usercreatedate between @starttime and @endtime select ip,count(*) from UserLogInfo_tblwhere datediff(minute,usercreatedate,getdate())<=10group by ip exec 加上 FOR XML PATH 输出结果就不对了 请教 数据库问题 关于不建立临时表统计每月的销售额的实现方法(符带我的做法) 求一句SQL SQL数据库视图索引问题 请教:下面这段存储过程错误在哪? 如何才能"强来"啊,关于SQL语句:RESTORE DATABASE... sqlserver2005日志文件丢失 请教:部门及其子部门的用款汇总统计 后台sql server数据库创建问题 有什么办法可以一次过把所有数据库备份,难道要自己写存储过程 用sql语句创建表的问题?
where usercreatedate between dateadd(minute,-10,getdate()) and getdate()
group by userip
usercreatedate >= convert(convert(usercreatedate,int)-10,datetime)
select ip,count(*) from UserLogInfo_tbl
where datediff(minute,usercreatedate,getdate())<=10
group by ip