문제

I have a column data that holds a json document roughly like this:

{
    "name": "foo",
    "tags": ["foo", "bar"]
}

I would like to turn the nested tags array into a concatenated string (foo, bar). That would be easily possible with the array_to_string() function in theory. However, this function does not act on json arrays. So I wonder how to turn this json array into a Postgres array?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top