Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/12/2007, 04:10
seyko
 
Fecha de Ingreso: febrero-2007
Mensajes: 1.292
Antigüedad: 17 años, 3 meses
Puntos: 13
Re: cómo recuperar dato numeric de función

CREATE OR REPLACE FUNCTION test() RETURNS numeric AS
$BODY$
declare
res numeric;
begin
select 4+5.2 into res;
return res;
end;
$BODY$
LANGUAGE 'plpgsql' VOLATILE;

select test();

Un saludo