Sql数据库时间和当前时间格式后比较是否相等

select count(v.ID) as TodayCount,c.Name,c.VoteCount,c.trabeType,c.Number 
from vote v,CMS_U_Vote c
where v.ID=c.ID and (Select CONVERT(varchar(100),v.VoteTime, 23)) =(Select CONVERT(varchar(100), getdate(), 23))
group by v.ID,c.NAME,c.VoteCount,c.trabeType,c.Number
原文地址:https://www.cnblogs.com/zwnet/p/2657748.html