Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/05/2010, 07:33
hitokiri833
 
Fecha de Ingreso: mayo-2010
Mensajes: 12
Antigüedad: 14 años
Puntos: 0
Respuesta: PROBLEMON!!!! con funcion

Hola calakra, creo que lo que tu necesitas es crear un TYPE para que esa funcion te retorne un resultado en forma de query, tendrias que hacer algo asi:

Código:
CREATE OR REPLACE FUNCTION mi_funcion (parametro1, parametro2)
  RETURNS SETOF mi_tipo  AS

$BODY$
DECLARE ...............
Luego crearte un tipo, investiga en este link

[URL="http://www.postgresql.org/docs/8.4/static/sql-createtype.html"]enlace...[/URL]

Y luego te tienes que crear un tipo llamado mi_tipo asociado a la funcion