I am looking for ways to Export/Import Related data in multiple tables from one environment to another. The table structures remain the same. I found ways to export data from multiple tables with individual SQL in TOAD in one script, but I am looking for exporting related data only. Say for instance get CUSTID, CUSTNAME FROM customers table and then get all the employees tied to that CUSTID in EMP table by extracting EMPID,EMPNAME,CUSTID.
I would like to then use the Import or Load utility to load that data in a different set of tables.
I am not fully sure I understand what you are trying to accomplish, however, I know you can use the import wizard and specify two queries, each with a new table as the target. Please see the attached document for details on how that is done with Toad DB2 5.0. Forum122011.docx (339 KB)