【发布时间】:2018-08-02 01:24:50
【问题描述】:
我有以下数据结构:
{
"proccess1": {
"error": "error1 description",
"nextRetryAt": "2018-02-22T07:39:00.325Z",
"attemptsMade": 148,
"firstFailedAt": "2018-02-16T06:40:41.327Z"
},
"proccess2": {
"error": "error2 description",
"nextRetryAt": "2019-03-16T06:41:01.566Z",
"attemptsMade": 77,
"firstFailedAt": "2016-03-15T04:35:12.248Z"
}
}
我的问题是如何构建查询
select *
from data
where data->[0]->>'nextRetryAt' = 'my passed value'
我不知道键 proccess1 和 proccess2 的名称。他们可能有任何价值。
【问题讨论】:
标签: json postgresql jsonb