【发布时间】:2020-05-03 14:03:17
【问题描述】:
我正在尝试对具有“regionName”字段的“Country”文档进行非规范化,该字段对应于另一个“Region”文档的“name”。我的 N1QL 查询如下,但它不起作用
update test as t1 set regionName = (
select raw name from test as t2 where `_class`="Region"
) where `_class`="Country" and t1.regionCode=t2.code RETURNING *;
有什么帮助吗?
【问题讨论】: