2017-08-29 29 views

回答

1

基本上,应该在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) 

SQLFiddle.

+0

许多感谢的! – Jonathan