【发布时间】:2019-03-10 06:50:37
【问题描述】:
我从 postgresql 数据库的列中获得了两个 JSON 数据行,看起来像这样。
{
"details":[{"to":"0:00:00","from":"00:00:12"}]
}
{
"details":[
{"to":"13:01:11","from":"13:00:12"},
{"to":"00:00:12","from":"13:02:11"}
]
}
我想遍历详细信息并使用 postgresql 中的查询仅获取“来自”键值。 我想要这样的
from
00:00:12
13:00:12
13:02:11
【问题讨论】:
-
列的数据类型是jsonb还是json?
-
是的,列的数据类型是jsonb
标签: arrays json postgresql