I am using SQLite for Phonegap. And I want to insert some data in my table and I want to avoid the duplication of data.
Like I have data from server.
ID Name
1 ABC
2 DEF
3 GHI
4 JKL
5 MNO
And next time I am getting same values and I want to insert in DB.
ID Name
1 ABC
2 DEF
3 GHI
4 JKL
5 MNO
6 PQR
7 STU
So there are some few new values and some old like ID 1,2,3,4,5 and some new 6,7,8 So I want to insert just new values 6,7,8 How I can avoid these duplicates.