1

我正在从这个数据集查询。从文档中我知道有一个变量disp_date(floating_timestamp)。从文档中我认为我应该能够使用between ... and ...on disp_date

假设我想要从 2016-01-01 到 2016-02-31。我尝试了以下方法:

https://data.brla.gov/resource/4w4d-4es6.json?disp_date between 2016-01-01T00:00:00.000 and 2016-02-01T00:00:00.000

{
  "error" : true,
  "message" : "Unrecognized arguments [disp_date between 2016-01-01T00:00:00.000 and 2016-02-01T00:00:00.000]"
}
4

1 回答 1

1

看起来您在$where开始时缺少声明。此外,需要一些关于日期的引号。这对我有用:

https://data.brla.gov/resource/4w4d-4es6.json?$where=disp_date between '2016-01-01T00:00:00.000' and '2016-02-01T00:00:00.000'

使用 HTML 编码:

https://data.brla.gov/resource/4w4d-4es6.json?$where=disp_date%20between%20%272016-01-01T00:00:00.000%27%20and%20%272016-02-01T00:00:00.000%27

于 2018-05-30T15:59:36.263 回答