日期:2014-05-17 浏览次数:20605 次
declare @logoNumber int
select @logoNumber=COUNT(*) from A_Logo where (username=@username or loginip=@loginIp) and ActivityID=@ActivityID and CONVERT(date,addtime)=CONVERT(date,GETDATE())
declare @logoNumber int
select @logoNumber=COUNT(*)
from A_Logo
where (username=@username or loginip=@loginIp)
and ActivityID=@ActivityID
and convert(varchar(20),addtime,111)=convert(varchar(20),getdate(),111)