On 5/6/06, Walter Vera <vera(dot)walter(at)gmail(dot)com> wrote:
>
> Hola a todos
> Tengo problemas cuando quiero crear funciones con parametros de salida
>
> CREATE FUNCTION suma(x int, y int, OUT sum int) AS $BODY$
> BEGIN
> sum := x + y;
> END;
> $BODY$ LANGUAGE plpgsql;
>
>
> Me muestra el siguiente error
> ERROR: CREATE FUNCTION / OUT parameters are not implemented
CREATE FUNCTION suma($1 as int, $2 as int) RETURN integer AS $BODY$
DECLARE
x ALIAS FOR $1;
y ALIAS FOR $2;
BEGIN
RETURN x + y;
END;
$BODY$ LANGUAGE plpgsql;