From 96fed308fe24539e367815bee09d3c4b43449704 Mon Sep 17 00:00:00 2001 From: garyan0336 Date: Sat, 11 Oct 2025 17:56:02 +0800 Subject: [PATCH] Update jsonb.md --- src/current/v25.3/jsonb.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/current/v25.3/jsonb.md b/src/current/v25.3/jsonb.md index dabf2afe98c..fccf81617e3 100644 --- a/src/current/v25.3/jsonb.md +++ b/src/current/v25.3/jsonb.md @@ -54,7 +54,7 @@ Operator | Description | Example Query and Output | `->` | Access a `JSONB` field, returning a `JSONB` value. | `SELECT '[{"foo":"bar"}]'::JSONB->0->'foo';`

`"bar"::JSONB` `->>` | Access a `JSONB` field, returning a string. | `SELECT '{"foo":"bar"}'::JSONB->>'foo';`

`bar::STRING` `@>` | Tests whether the left `JSONB` field contains the right `JSONB` field. | `SELECT ('{"foo": {"baz": 3}, "bar": 2}'::JSONB@>'{"foo": {"baz":3}}'::JSONB );`

`true` -`>@` | Tests whether the left `JSONB` field is contained by the right `JSONB` field. | `SELECT('{"bar":2}'::JSONB<@'{"foo":1, "bar":2}'::JSONB);`

`true` +`<@` | Tests whether the left `JSONB` field is contained by the right `JSONB` field. | `SELECT('{"bar":2}'::JSONB<@'{"foo":1, "bar":2}'::JSONB);`

`true` `#>` | Access a `JSONB` field at the specified path, returning a `JSONB` value. | `SELECT '[{"foo":"bar"}]'::JSONB#>'{0,foo}';`

`"bar"::JSONB` `#>>` | Access a `JSONB` field at the specified path, returning a string. | `SELECT '[{"foo":"bar"}]'::JSONB#>>'{0,foo}';`

`bar::STRING` `?` | Does the key or element string exist within the JSONB value? | `SELECT('{"foo":1, "bar":2}'::JSONB?'bar');`

`true`