문제

My program will read the data from the CSV file and insert each and every record into the data base. But the problem is, if there are 200 records, while retrieving it, it is showing 212 records containing some of the duplicate records. How to solve this?

도움이 되었습니까?

해결책

Add a primary key to you table to ensure no duplicate records can be inserted. Else you can also go for Merge statement to avoid duplicates.

Example for Merge:

http://www.oracle-base.com/articles/9i/merge-statement.php

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top