Quote:
|
Originally Posted by db2pro
Hi Andy,
Thanks for your reply.
1) The oracle table has only 4 fileds. These 4 fileds should go into my new db2 table and the rest 3 should be unique default value of userid name and current timestamp of the time when the data is getting inserted.
2)How can I add the current timestamp of the system in the exported file as for the inserts in db2 if values are given with current_timestamp this value is generated by the system.
3)The target table in db2 has 7 columns so I have to do this at once..
Please let me know your thoughts. I think the above points makes sense..
Thanks Much..
|
1) you would supply the other 3 columns during the export. This assumes you know what the values are. For "Current timestamp", can't it just be some value, instead of the time the rows are inserted?
2) Does it have to be current timestamp? Can't it be something close?
3) I think you missed what I said. I meant this:
A) Create a new table in DB2 with the 4 columns like the table in Oracle
B) Insert the data int this 4 column table
C) Run the following Command insert into Table_With_7_Columns select Col1,col2,col3,col4,Some_Value_you_Supply, current timestamp, some_other_Value_you_supply from new_table_with_4_columns.
Andy