javaclass which we have created in the last tutorial so go to the database helper. Step 3) Now we need to create a function in our database helper. And to update the data we need a unique reference of the row so that we can tell SQLite that we want to delete the data from this row.īecause names can be same so if you want to change the name of one partner which shares the name with the other person then the data can be changed for both the names if you don't know what is the unique you know row or unique column in this, So id we have defined as a unique column for this database table. First one was id, the second one was name, surname and the marks scored by the students. Step 2) And one more thing we want to do is, if you remember our database table contains four columns. Step 1) First add one more button and this button we are going to use to update the data, so I'm going to change the name of the button as an update. Please follow the below steps in order to update data in SQLite database using our Android app:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |