Advertisement

10.31.2006 at 05:31AM PST, ID: 22043727
[x]
Attachment Details

Compare two cursors and Insert or Update

Asked by aaba646 in Oracle Database

Tags: cursors, two, compare

Hi ,

I have cursor1 which has col1A,col2A,col3A,col4A and cursor2 with col1B,col2B,col3B,col4B
Now i have to compare each record from cursor1 with corresponding fields with cursor2 records and if found then update and if not found insert the new record into table xyz.

The cursor1 would bring the records from table abc whereas cursor2 would bring the records from xyz table.

Thanks Start Free Trial
[+][-]10.31.2006 at 05:42AM PST, ID: 17841776

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle Database
Tags: cursors, two, compare
Sign Up Now!
Solution Provided By: hans_vd
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.31.2006 at 11:27AM PST, ID: 17844633

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32