Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/01/2010, 17:17
Avatar de ah_puch
ah_puch
 
Fecha de Ingreso: agosto-2005
Ubicación: Ecatepec, México
Mensajes: 180
Antigüedad: 18 años, 7 meses
Puntos: 3
Exclamación Desplazar Cursores

Buenas Tardes Comunidad:

bueno lo que nesesito es lo siguiente tengo los siguientes Cursores

create or replace function FN_EJM1(Cur_OUT OUT Sys_RefCursor, a In Number, b In Number) IS
BEGIN

CURSOR CUR1 IS SELECT * FROM XXXX;
CURSOR CUR2 IS SELECT * FROM YYYYY;

FOR RUN1 IN CUR1 LOOP
FOR RUN2 IN CUR2 LOOP
IF RUN1.CAMPO1 = RUN2.CAMPO1 THEN
CUR_OUT := RUN1 + RUN2 -- AQUI ES DONDE NO SE COMO HACER PARA QUE LA COMBINACION DE AMBOS REGISTROS GENEREN 1 NUEVO EN EL CURSOR DE SALIDA
END IF;
END LOOP;
END LOOP;

END;

LO QUE NESESITO ES QUE LA UNION DEL CURSOR Y + EL CURSOR 2 SE VACIEN EN EL CURSOR 3 ES ESTO POSIBLE Y DE SERLO ME PODRIAN DAR ALGUNA REFERENCIA POR FAVOR.

de antemano gracias y espero me puedan auxiliar
__________________
La programacion no es un trabajo, es un Arte
http://www.purodev.blogspot.com