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: 3073cc9b0806272042s54ae040fm9e55501ce7812fc5@mail.gmail.com (view raw or flat)
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
 $$
 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

In response to

Responses

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-2014 The PostgreSQL Global Development Group