📜  sqlite3 更新选择 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:09.359000             🧑  作者: Mango

代码示例1
UPDATE 
      software
SET purchprice = (SELECT purchprice
                  FROM softwarecost
                  WHERE id = software.id) 
where EXISTS (SELECT purchprice
                  FROM softwarecost
                  WHERE id = software.id)