•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 332,602 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,247 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser:
Views: 170 | Replies: 1 | Solved
![]() |
•
•
Join Date: Apr 2008
Posts: 33
Reputation:
Rep Power: 1
Solved Threads: 0
Hi guys,
Both cursor works if i don't use them in one Stored procedure. Both cursors return TRUE for(cursor_x%found). But, insert into process doen't work in cursor_1. Is there any structure problem?
Thanks
Both cursor works if i don't use them in one Stored procedure. Both cursors return TRUE for(cursor_x%found). But, insert into process doen't work in cursor_1. Is there any structure problem?
Thanks
CREATE OR REPLACE PROCEDURE ADD_RENTAL_SP
IS
-- cursor1
CURSOR cursor_1 IS
SELECT ......
rec1 VARCHAR(15);
-- cursor2
CURSOR cursor_2 IS
SELECT ......
rec2 VARCHAR(15);
BEGIN
OPEN cursor_2;
LOOP
FETCH cursor_2 INTO rec2;
IF ( cursor_2%found ) THEN
INSERT INTO .....
----
OPEN cursor_1;
LOOP
FETCH cursor_1 INTO rec1;
IF ( cursor_1%found ) THEN
INSERT INTO ...
EXIT WHEN cursor_1%found;
END IF;
END LOOP;
CLOSE cursor_1;
----
EXIT WHEN cursor_2%found;
END IF;
END LOOP;
COMMIT;
CLOSE cursor_2;
END;![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Oracle Marketplace
- Cursor display problem (C++)
- Linked List Problem (C++)
- Cursor Blinks/flickers During Games (Peripherals)
- Setting Cursor position (C++)
- problem with string (Python)
- how do i keep a blinking cursor on the site? (JavaScript / DHTML / AJAX)
- Problem viewing motion .gif and rollover... (Windows NT / 2000 / XP / 2003)
- Monitor or Video Card problem?? (Monitors, Displays and Video Cards)
Other Threads in the Oracle Forum
- Previous Thread: Trigger error
- Next Thread: oracle utlmail problem


Linear Mode