From: | Paulo Nievierowski <postgres(at)steffenpneus(dot)com(dot)br> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | SELECT with Function |
Date: | 2004-09-29 13:51:49 |
Message-ID: | 2004929105149.835585@develop |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hello,
This is my first message to pgsql-novice.
I create plpgsql function "myfunc(integer)" thats returns of type
record with values from table X (the function decides what record must
be select). The parameter is an keyprod existing in table X and in
table A.
It run well sending in psql:
SELECT * FROM myfunc( 10006530 ) as (vret1 numeric, vret2 numeric);
The problem is:
I need return data from table A (this have column 'keyprod'). This
value (keyprod) must be passed as parameter to myfunc(). The result
must be a union of columns selected from table A and result of
myfunc().
How to create this query? It's possible?
Thanks
Paulo Nievierowski
PS: Excuses my poor english.
From | Date | Subject | |
---|---|---|---|
Next Message | van Elsacker Frans | 2004-09-29 17:12:47 | multiple insert |
Previous Message | Marco Gaiarin | 2004-09-29 13:21:21 | Re: Porting problem from Informix to Postgres... |