|    
			
				07/05/2007, 16:11
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: abril-2007 
						Mensajes: 27
					 Antigüedad: 18 años, 6 meses Puntos: 0 |  | 
  |  no pùedo mostrar los resultados de un select dentro una funcion  
  esta la funcion que tengo cuando la ejecuto select ver_tasa(123)
 me sale el sgte error
 
 ERROR: query has no destination for result data
 Estado SQL:42601
 Sugerencias:If you want to discard the results of a SELECT, use PERFORM instead.
 Contexto:PL/pgSQL function "ver_tasa" line 5 at SQL statement
 
 
 CREATE OR REPLACE FUNCTION ver_tasa(npre integer)
 RETURNS record AS
 $BODY$
 declare
 PORC DECIMAL(4,2);
 resultado record;
 begin
 select PORC = PORCENT  from vwtasas where vwtasas.num_pre = NPRE;
 select PORC;
 
 return resultado;
 end;
 $BODY$
 LANGUAGE 'plpgsql' VOLATILE;
 ALTER FUNCTION ver_tasa(npre integer) OWNER TO postgres;
     |