Select PostDate from View_ResumeAPply Where DATEDIFF(d,getdate(),PostDate)>-3
SQL code:
Select PostDate from View_ResumeAPply Where DATEDIFF(d,getdate(),PostDate)>=-3
3ÌìÄÚÓ¦¸ÃÓÐ=µÄ ¶î¡£¡£ÎÒ¸Õ²Åû˵Çå³þ¡£ÒòΪÊÇÇ°Ì¨Ò³ÃæÓÐÒ»¸öÏÂÀÁÐ±í¸øÓû§Ñ¡Ôñ£º1ÌìÄÚ 2ÌìÄÚ 3ÌìÄÚ ÕâÑù£¬ËùÒÔDATEDIFF(d,getdate(),PostDate)>-3 ,ÕâÀï¾Í²»ÄÜ»ñÈ¡µ½PostDate Select PostDate from View_ResumeAPply Where convert(varchar(10),PostDate ,120) between convert(varchar(10),getDate()-3,120) and convert(varchar(10),getDate(),120) covert(10,postDate,120) between convert(10,getdate()-3,120) and covert(10,getdate(),120) ÓÃÕâ¸öÌõ¼þÊÔÏÂ