SQL如何写select提取数据库内五天内的新闻?

来源:互联网 发布:软件项目上线确认书 编辑:程序博客网 时间:2024/04/28 08:05

select * from 你的表 where datediff(d, [Datetime], getdate()) <= 5