In SQLite I need to update row counts of a related table.
The query below does what I want but it walks the table multiple times to get the counts:
U
In the given statement, both ItemName and ItemCategoryName are updated in a single statement with UPDATE. It worked in my SQLite.
UPDATE Item SET ItemName='Tea powder', ItemCategoryName='Food' WHERE ItemId='1';