Answer the question
In order to leave comments, you need to log in
PostgreSQL how to count number of keys in JSON?
I've been struggling with this problem for several hours now.
Let's say there is a table id-PK, data (json), any data can enter json, for example
{
"name":"Vasya"
},
{
"name":"Petya",
"secondName":"Petrov"
},
{
"name":"Serg",
"secondName":"Sergs",
"money":"42"
}
value | count
name 3
secondName 2
money 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question