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 > Import data - order list

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-05, 09:16
NNicole NNicole is offline
Registered User
 
Join Date: May 2003
Posts: 57
Unhappy Import data - order list

Hello all!

I'm trying to find out how to get an ordered list of all tables to import data in db according to foreign keys that exist. I don't have idea how to do that...

Thank you in advance,
NNicole
Reply With Quote
  #2 (permalink)  
Old 01-10-05, 10:55
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Normally you would drop the constraints, load data, and then re-create the constraints.
Reply With Quote
  #3 (permalink)  
Old 01-11-05, 08:47
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
NNicole
If you do not want to drop the FKs, I posted on this forum a query to get what you want. You can locate it here also:

http://www.db2click.com/scribble.htm

Andy
Reply With Quote
  #4 (permalink)  
Old 01-11-05, 08:48
NNicole NNicole is offline
Registered User
 
Join Date: May 2003
Posts: 57
I know that way, but I'd like to exclude data that doesn't "fit" before I import them. Not exactly exclude rows, just to see where (on what tables) db rejects to import because of ref. integrity...
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