Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑在 Couchbase 中,我有 3 个文档,其中包含名称:
彼得保罗玛丽
有没有一种简单的方法可以使用 N1QL 将其转换为 Peter、Paul、Mary 的单个字符串?
您可以执行以下操作:
SELECT ENCODE_JSON(ARRAY_AGG(d.name)) AS name FROM mybucket d WHERE d.name IS NOT NULL;