0

https://health.data.ny.gov/resource/u4ud-w55t.json?hospital_county=Suffolk $limit=1

有效,但

https://health.data.ny.gov/resource/u4ud-w55t.json ?$where=hospital_county=Suffolk

才不是。为什么是这样 ?既然 $limit 有效,为什么 $where 无效?

4

1 回答 1

1

使用 $where 子句时,您必须用引号将字符串值括起来。所以正确的查询是: https://health.data.ny.gov/resource/u4ud-w55t.json ?$where=hospital_county='Suffolk'

于 2014-10-12T22:54:49.093 回答