【发布时间】:2018-08-02 14:05:01
【问题描述】:
使用 PostgreSQL 9.6+
两个表(简化为仅与示例数据相关的列):
表 1:
-------------------------------------------------------
key (PK) [Text]| resources [JSONB]
-------------------------------------------------------
asdfaewdfas | [i0c1d1233s49f3fce, z0k1d9921s49f3glk]
表 2:
-------------------------------------------------------
resource (PK) [Text]| data [JSONB]
-------------------------------------------------------
i0c1d1233s49f3fce | {large json of data}
z0k1d9921s49f3glk | {large json of data}
尝试从表 1 的 resources 列访问表 2 的 data 列。
【问题讨论】:
标签: sql json postgresql jsonb postgresql-9.6