Re: [Pgsql-ayuda] Funcion con setof + libpq

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Carmen Gloria Sepulveda Dedes <csepulveda(at)atichile(dot)com>
Cc: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Subject: Re: [Pgsql-ayuda] Funcion con setof + libpq
Date: 2003-09-25 16:13:48
Message-ID: 20030925161348.GB16425@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Thu, Sep 25, 2003 at 11:56:27AM -0400, Carmen Gloria Sepulveda Dedes wrote:

> "create function select_t1( ... )
> Returns setof T1 As
> '
> Select * from T1 ....
> ' LANGUAGE SQL;

> sprintf(query_string, "SELECT SELECT_T1( ... )", ... );

Select columna, columna2, ... from select_t1(...)

_deberia_ funcionar.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Sallah, I said NO camels! That's FIVE camels; can't you count?"
(Indiana Jones)

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Carmen Gloria Sepulveda Dedes 2003-09-25 16:17:53 Re: [Pgsql-ayuda] Funcion con setof + libpq
Previous Message Eduardo Gauna 2003-09-25 16:09:22 Re: [Pgsql-ayuda] Mensaje: pq_recvbuf:recv() failed: No error