Search Postgresql Archives

Re: SELECT statement in stored procedure

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

 



On Saturday 01 July 2006 09:08, "Alain Roger" <raf.news@xxxxxxxxx> wrote:
> it works but i get all fields from my accounts table.
>
> So how can i get only login and status ?
>

Define a composite type that includes only those fields and return SETOF 
that_new_type instead of SETOF accounts.

Or select login,status from function_name() instead of select *.

-- 
When we vote for taxes, we are voting to steal from our neighbors



[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