Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-es-ayuda by date

Next:From: CalabazaDate: 2008-06-29 07:19:29
Subject: Re: Retorno de tipo boolean
Previous:From: Eduardo Villagrán MoralesDate: 2008-06-29 03:24:26
Subject: Retorno de tipo boolean

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group