top of page
Search

ArchiFrame Archicad Torrents Buddha Fragebogen Freesms Onlinetv Humax Singlechat Jakkscev







Q: postgres jsonb search for all elements with a certain value in all arrays I have the following jsonb column { "url": { "location": { "description": [ "The historic site of Tampō Station, in Kiyama, Nara, Japan." ] }, "url_canon": "", "id": "65" }, "id": "65" } and I want to select all documents that contain all of the following: any "description": { "content": "The historic site of Tampō Station, in Kiyama, Nara, Japan." } and all "content": "The historic site of Tampō Station, in Kiyama, Nara, Japan." which means documents that have "description": [{...}, {...}] in all "location": {...}, etc. I tried select * from geocities where jb_data->'location.description' @> 'description:[a-zA-Z0-9.:_-]'; which is good for testing but is not working. I guess what I am asking is how to search for every element in every array of every object in a jsonb array. A: I've read a bit about the postgres JSON support in relation to other databases, but at least as far as I know, there's no good support for JSON nested objects in SQL or JPQL. So you'd have to use an application level language like Java or Javascript. The best way to do this is to write your own function in a procedural language that maps the structure of your data


Related links:

7 views0 comments

Recent Posts

See All

Attack on titan jogos download apk

Jogos Attack on Titan: como baixá-los e jogá-los em seu dispositivo Android Se você é fã de anime, provavelmente já ouviu falar Ataque ao titã, uma das séries mais populares e aclamadas dos últimos an

bottom of page