如何将以下命令写入 sqlitedatabaseupdate()
函数?
String query="update " + TABLE_TASKS + " SET " + TASK_LEFT + "=CASE WHEN " + TASK_LEFT + ">= " + left +" THEN " + TASK_LEFT + "+2 ELSE " + TASK_LEFT + " END, " + TASK_RIGHT + "=" + TASK_RIGHT + " +2 WHERE " +TASK_RIGHT +" >= " + right;
基本上我想知道如何在函数中插入多个子句和WHEN THEN
子句update()
?