Saturday, June 28, 2008

Re: [pgsql-es-ayuda] Return Query

On Sat, Jun 28, 2008 at 12:26 PM, Edwin Quijada
<listas_quijada@hotmail.com> wrote:
>>>
>>> Consigo el sigte error:
>>> ERROR: a column definition list is required for functions returning "record"
>>>
>>
>> create or replace function f1(out id_record integer, out alias text)
>> returns setof record as
>> $$
>> begin
>> return query select id_record,alias from uno_email_alias;
>> end;
>> $$ language plpgsql;
>>
> Jaime, como la invoco?

select * from f1();

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Guayaquil - Ecuador
Cel. (593) 87171157
--
TIP 10: no uses HTML en tu pregunta, seguro que quien responda no podrá leerlo

No comments: