Search Postgresql Archives

Re: How to write a function that manipulates a set of results

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ashley Moran <work@xxxxxxxxxxxxxxxxx> schrieb:
> The closest I've come from reading the docs is functions that return  
> SETOF.  However I can't see any way to query the result set like a  table.  

Right.

> Can anyone offer any hints/links?

select * from <insert_your_srf-function_here>.

For instance, if your SRF-function is called foo(), do:

select * from foo();


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux