取出SQL一周内所有记录

from TechnologyStore t where t.deleteNum=0 and datediff(week,t.publishDate,getdate())=0

 

 

主要是datediff(week,t.publishDate,getdate())=0

你可能感兴趣的:(sql)