json
jsonb_to_recordset
Converts an array of objects into typed rows using the declared record shape.
Formal Syntax & Structure
sql syntaxsql
jsonb_to_recordset(jsonb) AS alias(column type, ...)Working Example
Example Snippetsql
SELECT * FROM jsonb_to_recordset('[{"id":9},{"id":7}]') AS t(id int) ORDER BY id;