Próbowałem:Jak utworzyć UPDATE przy dołączaniu tabel do SQLite?
UPDATE closure JOIN item ON (item_id = id)
SET checked = 0
WHERE ancestor_id = 1
oraz:
UPDATE closure, item
SET checked = 0
WHERE ancestor_id = 1 AND item_id = id
Obie prace z MySQL, ale te dają mi błąd składni w SQLite.
Jak mogę uczynić to UPDATE/JOIN działa z SQLite wersja 3.5.9?
to już odpowiedział http://stackoverflow.com/questions/3845718/sql-how-to-update-table-values-from-another-table-with-the-same -user-name –