data duplication in sqlite with android app -



data duplication in sqlite with android app -

i getting info user in sqlite database. when insert same record in database added again. how can stop duplication of record in sqlite. developing in android. using mobile number primary key. still add together record in database. please suggest me appropriate solutions. in advanced.

be aware of limitations of replace or insert or replace these overwrite custom info app user has added these rows in database - not advanced upsert in other sql databases.

as mentioned in previous post need identify primary key , utilize info either update old info or remove old row before inserting fresh one.

if not possible delete my_table or drop my_table before running insertions there no duplicates. (for improve or worse) create sure info missing new imports not left lying around in app.

android sqlite sqlite3

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -