Re: Return Query

From: "Jaime Casanova" <jcasanov(at)systemguards(dot)com(dot)ec>
To: "Edwin Quijada" <listas_quijada(at)hotmail(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Return Query
Date: 2008-06-29 05:29:57
Message-ID: 3073cc9b0806282229t74019902ob5ad1f2bc45baf8d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Sat, Jun 28, 2008 at 12:26 PM, Edwin Quijada
<listas_quijada(at)hotmail(dot)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

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Calabaza 2008-06-29 07:19:29 Re: Retorno de tipo boolean
Previous Message Eduardo Villagrán Morales 2008-06-29 03:24:26 Retorno de tipo boolean