--一天内:select*fromtblwhereconvert(varchar(10),posttime,120)='2010-04-03'--一周内:select*fromtblwheredatedepart(dw,posttime)=datedepart(dw,'2010-04-03')--一月内select*fromtblwhereconvert(varchar(7),posttime,120)='2010-04'。
@kaka917
顶0
加入收藏
相关问答推荐
加入收藏