📅  最后修改于: 2022-03-11 15:05:09.359000             🧑  作者: Mango
UPDATE
software
SET purchprice = (SELECT purchprice
FROM softwarecost
WHERE id = software.id)
where EXISTS (SELECT purchprice
FROM softwarecost
WHERE id = software.id)