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 9.7 export/import

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-21-11, 17:16
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
Db2 9.7 export/import

hello,

I have a table with 10 columns. The primary column is oid and account_number.

Now I have to export only one row from this table and need to change the account number with a dummy number.
Then after I have to import this data to my test system.

please advise, how can i do this.

when I do the select col1, col1,col3.....col10 for export and import, should it be in the same order?

Thanks. Valan
__________________
Reply With Quote
  #2 (permalink)  
Old 10-24-11, 02:22
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
if the row is not important : export.. fetch first row only
or if you know the key : export .. where key=x
account_number can be forced in export with literal
you can export in any order .. select col1,col2...
at import the same : insert into ..(col1,col2
see import syntax
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
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