Tag archive
Commands grouped around the same concept, pattern, or recurring problem.
Collect values from multiple rows into a single JSON array, ordered and grouped by other columns.
Construct a JSON object literal from individual column values within a query, returning structured data without a separate serialization step.
Return the number of items stored in a JSON array value.
Turn a list of values into individual rows — using `UNNEST` for native arrays in PostgreSQL, `JSON_TABLE` in MySQL, `OPENJSON` in SQL Server, or `json_each` in SQLite.
Return rows where a JSON array contains a specific scalar value.
Use each engine's JSON path syntax in a `WHERE` clause to keep only rows whose JSON column contains a matching value.
Extract a scalar value from a JSON column using the JSON function or operator each engine supports.