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-28 03:42:03
Message-ID: (view raw or whole thread)
Lists: pgsql-es-ayuda
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
  return query select id_record,alias from uno_email_alias;
 $$ language plpgsql;

Jaime Casanova
Soporte y capacitaciĆ³n de PostgreSQL
Guayaquil - Ecuador
Cel. (593) 87171157

In response to


pgsql-es-ayuda by date

Next:From: Edwin QuijadaDate: 2008-06-28 17:26:32
Subject: RE: Return Query
Previous:From: Alvaro HerreraDate: 2008-06-27 21:26:16
Subject: Re: Postgres y jdbc

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