Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> HELP- Insert/Update Sloooow

HELP- Insert/Update Sloooow

From: <hliji_at_yahoo.com>
Date: 5 Jan 2005 05:53:15 -0800
Message-ID: <1104933195.607291.274660@z14g2000cwz.googlegroups.com>


Hi,

I have 2 tables, working table W and the history table H. W has 2 million rows. I need to compare a common column C in both tables. For a record in W, R, if R.C has a value that equals to a record's H.C in H, then update that record in H. Otherwise, R is considered a new record for H and will be inserted into H.

I used a cursor for loop for W. But the operation was extreamly slow. Any other solutions?

Thanks in advance.

MK Received on Wed Jan 05 2005 - 07:53:15 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US