id
данные
0
{}
1
[]
2
"scalar_jsonb_value"
3
null
4
[{"name": "Keyboard", "price": 50, "currency": "USD", "item_tags": ["black", "optional"], "discount_price": 40},
{"name": "Мышь", "price": 40, "currency": "USD", "item_tags": ["white", "optional"], "discount_price": 30}]
5
[{"name": "Мышь", "price": 50, "currency": " ФУНТ СТЕРЛИНГОВ", "item_tags": ["black"], "discount_price": 50}, ,
{}]
6
[{"name": "Мышь", "price": 60, " валюта": "CAD", "item_tags": ["red"], "discount_price": 60}, ,
{"name": "Мышь", "price": 61, "currency": "AUD", "item_tags": [ "blue"], "discount_price": 61}]
7
[{"name": "Мышь", "цена": 70, "валюта": "AUD", "item_tags": ["violet"], "extra_gifts": [{"name": "Мышь", "price": 701, "currency": "DKK", "item_tags": ["purple"], "discount_price": 701}], "discount_price": 70}]
8
[{}, ,
{"l1": {"l2": {" name": "Мышь", "comment": "подподобъект объекта в массиве"}}}]
< /div>
Мой текущий SQL-запрос:
Код: Выделить всё
select r.data->1
from data_set as r
Код: Выделить всё
select r.data->@name='Mouse'
from data_set
Подробнее здесь: https://stackoverflow.com/questions/793 ... -sql-query