gomdor avatar

CouchBase에 Array로 저장된 내용을 N1QL로 SELECT 하려면!?

gomdor

Published: 26 Dec 2017 › Updated: 26 Dec 2017CouchBase에 Array로 저장된 내용을 N1QL로 SELECT 하려면!?

CouchBase에 Array로 저장된 내용을 N1QL로 SELECT 하려면!?

CouchBase에 Array로 저장된 내용을 N1QL로 SELECT 하려면!?

  • UNNEST 를 이용!

SELECT UN.* FROM target-bucket UNNEST target-bucket as UN

CouchBase에서 document id도 함께 SELECT 하려면?

  • meta(t).id 를 이용!

SELECT meta(target-bucket).id as docId, * FROM target-bucket

Leave CouchBase에 Array로 저장된 내용을 N1QL로 SELECT 하려면!? to:

Written by

Read more #couchbase posts


Best Posts From gomdor

We have not curated any of gomdor's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From gomdor