Solved

Can sql loader update existing records in a table ??

Posted on 2009-04-12
1
1,378 Views
Last Modified: 2013-12-19
I'm new to the bulk utilities of oracle.  I need to import records from a flat file.  Somtimes this file can contain records that may already exist in the database.  How do I deal with this ?
0
Comment
Question by:buckrodger
1 Comment
 
LVL 25

Accepted Solution

by:
lwadwell earned 125 total points
ID: 24126940
Hi buckrodger,

No, SQL Loader just does inserts.  It supports four methods INSERT/APPEND/REPLACE/TRUNCATE:
The default is INSERT - which does just that, inserts the data, but expects the table to be empty first.
You can APPEND to the end of the table;
The final two are REPLACE and TRUNCATE.  With these the entire table will be erased before loading.

If you need to update existing data in a table from a file you can load the data into a another table first and then update the target table using a custom script or merge statement.

lwadwell
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
This video shows how to recover a database from a user managed backup
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question