sql2008 date的问题
sql2008的存储过程 复制到sql2005执行就出现问题了,
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)