我在Fusion表中有两个“where”,所以我想在单个where子句中运行代码。
query:
{
select: 'geometry',
from: 'tableid',
where: "direction = 'ida'",
where: 'ST_INTERSECTS(geometry, CIRCLE(LATLNG(-8.754864219111248, -63.87663083648681), 200))',
limit: 2
}
我想像这样运行查询,但它不起作用
where: "direction = 'ida'" AND 'ST_INTERSECTS(geometry, CIRCLE(LATLNG(-8.754864219111248, -63.87663083648681), 200))',
答案 0 :(得分:0)
我解决了它:
这是错误的查询顺序以及+'和'+:
where: 'ST_INTERSECTS(geometry, CIRCLE(LATLNG(-8.754864219111248, -63.87663083648681), 200))' +'and'+ "'direction' = 'ida'"