Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 sqlite 中有一个表,例如:
例如
列
|a |b |c |d |e |
|5 |6 |4 |3 |6 |
a - e 列包含一个整数
现在我需要在某些列中添加数字
例如,将 3 添加到“c”列,现在 c 将保留 7。
我该怎么做?
我认为这可以通过这样的简单update查询来完成:
update
UPDATE <table> SET c = c + 1;