scriptbug30 de Marzo del 2004
PreguntaHola!!
Tengo problema con SQL*plus y los cursores
cuando intento ejecutar un bloque el cual contiene un cursor no ejecuta.
Ejemplo
SQL> DECLARE
2 --Declaramos un Cursor
3 CURSOR DEPT IS
4 SELECT *
5 FROM DEPARTAMENTO
6 WHERE NUMEROD IN (1,2,3,4,5,6,7,8,9,10);
7 BEGIN
8
9 FOR regDEPT IN DEPT LOOP
10 DBMS_OUTPUT.PUT_LINE(regDEPT.NOMBRED|| ' '||regDEPT.NUMEROD||' '||regDEPT.NSS_JEFE);
11 END LOOP;
12 END;
13 /
14
15 .... doy intro y no ejecuta!!!
Sabe alguien que es lo que sucede
estoy como usuario SCOTT
muchas gracias!!!
Tengo problema con SQL*plus y los cursores
cuando intento ejecutar un bloque el cual contiene un cursor no ejecuta.
Ejemplo
SQL> DECLARE
2 --Declaramos un Cursor
3 CURSOR DEPT IS
4 SELECT *
5 FROM DEPARTAMENTO
6 WHERE NUMEROD IN (1,2,3,4,5,6,7,8,9,10);
7 BEGIN
8
9 FOR regDEPT IN DEPT LOOP
10 DBMS_OUTPUT.PUT_LINE(regDEPT.NOMBRED|| ' '||regDEPT.NUMEROD||' '||regDEPT.NSS_JEFE);
11 END LOOP;
12 END;
13 /
14
15 .... doy intro y no ejecuta!!!
Sabe alguien que es lo que sucede
estoy como usuario SCOTT
muchas gracias!!!
