mysql - How to update part of the database - Android SQLite -


i'm new in android. i'm using sqlite database store data. have 2 column in database containing unique data each user.

the problem when user update, update override personal data. want update database except 2 columns.

here initialize database:

insert words (_id, unlocked,solved,score,word,letters,image,suggestion) values (1,1,0,0,'example','example','pics/example.png','example'); 

as can see, 'solved' , 'score' has 0 values. don't want update these values. don't want drop entire database before update, keep 2 values, , make sure update not override data.

use this

update table_name set  column_name1='value', column_name2 = 'value1' condition_column='value' 

Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -