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

Re: Return Query

From: Lennin Caro <lennin(dot)caro(at)yahoo(dot)com>
To: Edwin Quijada <listas_quijada(at)hotmail(dot)com>, Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Return Query
Date: 2008-06-30 13:43:52
Message-ID: 755058.89166.qm@web59505.mail.ac4.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
prueba con un tipo definido por ti en vez del tipo record

--- On Sat, 6/28/08, Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec> wrote:
From: Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
Subject: Re: [pgsql-es-ayuda] Return Query
To: "Edwin Quijada" <listas_quijada(at)hotmail(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Date: Saturday, June 28, 2008, 3:42 AM

On Fri, Jun 27, 2008 at 11:06 AM, 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;



-- 
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Guayaquil - Ecuador
Cel. (593) 87171157
--
TIP 5: ¿Has leído nuestro extenso FAQ?
         http://www.postgresql.org/docs/faqs.FAQ.html


      

In response to

pgsql-es-ayuda by date

Next:From: Alvaro HerreraDate: 2008-06-30 13:53:57
Subject: Re: uso transacciones en plpgsql
Previous:From: Silvio QuadriDate: 2008-06-30 13:34:09
Subject: Re: uso transacciones en plpgsql

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