0

如何检索 3 天前的所有文件(从发布之日起)?

类似于给出的 SQL: Checking if date is more than 3 years old in PostgreSQL

SELECT * FROM foos WHERE date < '3 days'::interval;
4

1 回答 1

0
db.collection.find({created_at : {$gt : <fill in the date of the day before three days back  in the right format> })

应该管用

于 2013-09-23T10:36:48.177 回答