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 中的多行,其中每一行都有不同的值。
目前我只是循环更新语句。(我正在使用 SQLStatement 并替换参数)。
我知道使用 MySql 可以选择使用 CASE 命令执行一个更新,该更新将使用匹配值更新所有行。
sqlite中有没有类似的东西?
谢谢。
如果你知道你的查询应该是什么样子,你可以使用query()orrawQuery()方法而不是 update
query()
rawQuery()