【发布时间】:2021-07-14 15:01:30
【问题描述】:
我正在尝试在 Postgres 中编写存储过程。但我在 Postgres 中有 JSON 格式的数据,如下所示。
{
"identifiers":
[
{
"identifierType": "VIN",
"value": "L608"
},
{
"identifierType": "VIN",
"value": "L604"
}
]
现在我需要使用 Postgres 将上述 JSON 转换为单独的列和行:
identifierType value
-----------------------------
VIN L608
VIN L604
请帮忙!谢谢。
【问题讨论】:
标签: arrays json postgresql stored-procedures