[英]Expand a postgres array of JSON within a single column into multiple records
[英]Expand column into multiple columns in postgres
基本上,應該在FROM子句中調用返回行集的函數。 這樣,您將獲得常規列而不是結果集中的記錄。
SELECT upd.*
FROM input,
update_record(input) AS upd
WHERE upd.id IS NOT NULL
id | certified
----+-----------
1 | t
3 | t
5 | t
(3 rows)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.