A
A
andre77772015-01-27 20:56:19
SQL
andre7777, 2015-01-27 20:56:19

How to make SQL selection in an array?

there is table1 with column elements.
this column stores values ​​as an array:
{
"arr_val1": {
"0": {
"value": "z333z"
}
},
"arr_val2": {
"0": {
"value": "z593z"
}
}
}
how to get a selection of rows where ['arr_val2'][0]['value'] = z593z ???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2015-01-27
@melkij

Well, since it is not written whose SQL it is, then suppose postgresql>=9.3 www.postgresql.org/docs/9.3/static/functions-json.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question