I am loading several million to billions of rows of records into a single table. I wanted the load errors to write to a database table together with all the values for the data in the source row. The correctly loaded rows can load without writing anything to a log. How can this be achieved? Also need to write logic to skip a row if it already exists by checking the primary key.
Thanks!