sqlite更新字段
UPDATE tab1
SET field1 = field1 || '-',
field2 = field2 + 1
WHERE ID < 10
或
UPDATE tab1
SET (field1, field2) = (field1 || '-', field2 + 1)
WHERE ID < 10
表关联更新
UPDATE tab1
SET field1 = (SELECT tab2.field3 FROM tab2 WHERE tab2.FID = tab1.ID),
WHERE EXISTS (SELECT * FROM tab2 WHERE tab2.FID = tab1.ID)
或
UPDATE tab1
SET (field1, field2) = (SELECT tab2.field3, tab2.field4 FROM tab2 WHERE tab2.FID = tab1.ID)
WHERE EXISTS (SELECT * FROM tab2 WHERE tab2.FID = tab1.ID)