jrthor2
06-20-2008, 08:12 AM
I am writing a perl script to remove all rows from a table, and then load new rows from a csv file. I am using this command:
db2 connect to $DBNAME user $USER using $PASSWORD; db2 import from $JOBFILE of del replace into inet.insat_store_attr; db2 connect reset
If I have rows in the table already, and run this command, and the command rejects all the new rows, now my table is empty. Is there a way to do this without losing the rows until it successfully loads all the data?
Thanks.
db2 connect to $DBNAME user $USER using $PASSWORD; db2 import from $JOBFILE of del replace into inet.insat_store_attr; db2 connect reset
If I have rows in the table already, and run this command, and the command rejects all the new rows, now my table is empty. Is there a way to do this without losing the rows until it successfully loads all the data?
Thanks.