Slide 7
Slide 7 text
postgres=# SELECT * FROM test WHERE j @> '{"tags":[{"term":"PostgreSQL"},
{"term":"Database"}, {"term":"plpgsql"}, {"term":"Cheatsheet"}]}';
-[ RECORD 1 ]-
j | {"id": "http://delicious.com/url/
b7044a690899e0702b998db23335d3f3#chris.mcmillan", "link": "http://
www.postgresonline.com/journal/index.php?/archives/87-PostgreSQL-8.3-PLPGSQL-
Cheatsheet-Overview.html", "tags": [{"term": "Cheatsheet", "label": null, "scheme":
"http://delicious.com/chris.mcmillan/"}, {"term": "Database", "label": null,
"scheme": "http://delicious.com/chris.mcmillan/"}, {"term": "plpgsql", "label":
null, "scheme": "http://delicious.com/chris.mcmillan/"}, {"term": "PostgreSQL",
"label": null, "scheme": "http://delicious.com/chris.mcmillan/"}, {"term":
"Reference", "label": null, "scheme": "http://delicious.com/chris.mcmillan/"},
{"term": "SQL", "label": null, "scheme": "http://delicious.com/chris.mcmillan/"}],
"links": [{"rel": "alternate", "href": "http://www.postgresonline.com/journal/
index.php?/archives/87-PostgreSQL-8.3-PLPGSQL-Cheatsheet-Overview.html", "type":
"text/html"}], "title": "PostgreSQL 8.3 PL/PGSQL Cheatsheet Overview - Postgres
OnLine Journal", "author": "chris.mcmillan", "source": {}, "updated": "Wed, 09 Sep
2009 16:05:31 +0000", "comments": "http://delicious.com/url/
b7044a690899e0702b998db23335d3f3", "guidislink": false, "title_detail": {"base":
"http://feeds.delicious.com/v2/rss/recent?min=1&count=100", "type": "text/plain",
"value": "PostgreSQL 8.3 PL/PGSQL Cheatsheet Overview - Postgres OnLine Journal",
"language": null}, "wfw_commentrss": "http://feeds.delicious.com/v2/rss/url/
b7044a690899e0702b998db23335d3f3"}
7
Containment (“reaching in” to
a jsonb)
Wednesday, June 25, 14