I have 1 big table with 25 milions of rows and i have to merge data of another table with 500,000 rows into the big table. the rows of both tables have the same columns and i have to check if the key columns exist then i update the rest of the columns , otherwise i insert the new row.
i would like to know which is the best way to do the update:
1) update the columns according to the key columns
2) delete the old column and insert the new one instead.
How to merge 2 tables in Oracle
mergeoracleupdate
Related Question
- Sql-server – MERGE command in SQL Server 2005
- Oracle Merge Statement – How to Use UPDATE
- Oracle over-indexed tables
- SQL Server – How to Merge Two Tables
- Sql-server – Merge Failed when update same rows
- Mysql – Merge multiple InnoDB tables in MySQL
- SQL Server – How to Merge/Intersect Between Table and Dataset
Best Answer
You can fully achieve this with MERGE: