【发布时间】:2016-06-09 16:55:32
【问题描述】:
我有这张桌子:
CREATE TABLE lawyer (
id SERIAL PRIMARY KEY,
data jsonb
);
INSERT INTO lawyer (data) VALUES
('{"a": 1}'),
('{"tags":["derecho", "civil", "laboral", "penal"]}'),
('{"tags":["derecho", "penal"]}')
;
我想要的是 postgres 中的 JSONb 查询,用于在我需要查找包含“civil”OR“derecho”的任何条目的示例时
【问题讨论】:
标签: postgresql postgresql-9.1 postgresql-9.3 postgresql-9.2 jsonb