开发者

Changing row data in SQLite table, without deleting and re-inserting updated values again

开发者 https://www.devze.com 2023-04-11 01:04 出处:网络
I made SQLite database table that stores records, is it po开发者_StackOverflow中文版ssible to change some values

I made SQLite database table that stores records, is it po开发者_StackOverflow中文版ssible to change some values that stored inside the table without deleting and entering updated values with older one.

e.g. Lets say I want to change the wage of row ID = 0 to from 23$ to 40$ without deleting the first row and reinserting making the auto incremented ID change to 1, is to possible?!


Yes, you should use an UPDATE statement.


Yes, check out the UPDATE syntax of SQLite.

0

精彩评论

暂无评论...
验证码 换一张
取 消