Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008

    Unanswered: Db2 9.7 export/import


    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

  2. #2
    Join Date
    Apr 2006
    Provided Answers: 11
    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
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5-V11 Fundamentals- DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts