select datediff(s,voteTime,getdate()) fromvoter --设置数据库中voteTitle时间和当前getdate()时间的时间差
s--秒
d--天
转载于:https://www.cnblogs.com/leochu2008/archive/2008/07/16/1244585.html
转载于:https://www.cnblogs.com/leochu2008/archive/2008/07/16/1244585.html