| From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
|---|---|
| To: | Fernando Aguada <fernandoaguada(at)yahoo(dot)com(dot)ar> |
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org, Gustavo Maximiliano Cortez <patesi(at)gmail(dot)com> |
| Subject: | Re: Retornar select desde una funcion |
| Date: | 2005-01-21 15:13:37 |
| Message-ID: | 20050121151337.GA16759@dcc.uchile.cl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
On Fri, Jan 21, 2005 at 12:05:42PM -0300, Fernando Aguada wrote:
> cuando la ejecuto desde pgadmin con select ventaslista() , sale lo siguiente
>
> ERROR: SELECT query has no destination for result data
> HINT: If you want to discard the results, use PERFORM instead.
> CONTEXT: PL/pgSQL function "ventaslista" line 2 at SQL statement
Decidete, estas usando una funcion en SQL o en PL/pgSQL? En plpgsql no
puedes hacerlo de esa manera; en una funcion SQL si.
--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
Syntax error: function hell() needs an argument.
Please choose what hell you want to involve.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gustavo Maximiliano Cortez | 2005-01-21 15:19:25 | Re: Retornar select desde una funcion |
| Previous Message | Fernando Aguada | 2005-01-21 15:05:42 | Re: Retornar select desde una funcion |