如何选择最近7天的所有文档? [英] How do I select all documents from the last 7 days?

查看:63
本文介绍了如何选择最近7天的所有文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视图选择公式

SELECT @If( @Date(@Now) = @Date(@Created); @All; @False)  

我希望它选择过去7天而不是今天的所有文档.

and I want it to select all documents from the past 7 days rather than just today's.

推荐答案

SELECT @If( @Date(@Now) < @Date(@Adjust(@Created(), null, null, 7, null, null, null)); @All; @False)

这篇关于如何选择最近7天的所有文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆