I have a CSV file which contains an ID and several other columns. I also have a table in oracle where the ID identifies a row. How can I best replace the values that are in the table with the values in the CSV file while keeping the other columns the way they were before?
This has to be done with tools available in oracle itself (i.e. PL/SQL or SQL scripts), I can not use a “real” scripting language (Python, …) or a “real” program.
Thanks,
Thomas
Look at EXTERNAL TABLES in the Oracle doc. You can copy the csv file onto the Oracle server box and get Oracle to present it as a “normal” table on which you can run queries.
Then the problem just becomes one of copying data from one table to another.
External tables are really very useful for handling data loads like this.