mardi 10 mars 2015

Sqllite database updated rows become last row of database

My database table consists of many rows where unique key is the id for which i am using unique identifier so no duplicate items are there.I am using replace() method to add items to database so that if any column is updated then it is replaced by new value .But the issue is that suppose my first row of database is updated then it will become the last row with the updated value.If i use insert() method in place of replace() for adding items then items will not updated.What should i do so that my rows are also replaced and the order of items should not be changed after updation.


Aucun commentaire:

Enregistrer un commentaire