json

JSONB concatenation

Combines arrays or objects at the top level; duplicate object keys take the right value. It is not a recursive merge.

Formal Syntax & Structure

sql syntaxsql
jsonb || jsonb

Working Example

Example Snippetsql
SELECT '{"a":1}'::jsonb || '{"a":7,"b":9}'::jsonb;
SQL Reference