If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Db2 load utiltiy

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-12, 05:15
kalees79 kalees79 is offline
Registered User
 
Join Date: Feb 2012
Posts: 1
Db2 load utiltiy

Below are my scenario:
I want to append the new rows to the table using the load replace.and if any existing data is there and the values are changed
in that need to update the values.what is the option i can use in load utility?

Any help
Reply With Quote
  #2 (permalink)  
Old 02-02-12, 05:38
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
with load : only insert or replace
if insert-update is needed : import must be used and you need a pk
IMPORT
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 02-09-12, 14:14
haimdresler haimdresler is offline
Registered User
 
Join Date: Sep 2009
Location: Israel
Posts: 4
Good question

It make sence to do this , but until now there is no solusion do do it with load utility.
You can unload the current data and with syncsort to drop duplicates that are in the unload file.
Maybe now , after we have the MERGE , in the next version it will be posible.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On