Wednesday, June 11, 2014

Removing duplicate rows from sqlite table

db.execSQL("delete from TABLENAME where rowid not in (select min(rowid) from TABLENAME group by COLOUMNNAME);");

No comments:

Post a Comment