如何将以下语句从MySQL-ese转换为SQLite-ese?
UPDATE Attribute, Name
SET Attribute.AttValue = 'foobar'
WHERE Attribute.NameID = Name.NameID
AND Name.Name = 'rotate_ccw'
看起来SQLite不支持UPDATE statement中的联接。
答案 0 :(得分:5)
UPDATE Attribute
SET Attribute.AttValue = 'foobar'
WHERE Attribute.NameID = (SELECT Name.NameID FROM Name WHERE Name.Name = 'rotate_ccw')