更新时间:2022-12-09 14:48:08
我们需要有关无法正常工作的详细信息,但我认为您只需要使用:
We need details about what's not working, but I think you only need to use:
UPDATE TablePeople
SET missingdate = (SELECT MAX(te.replacementDate)
FROM TABLEEVENT te
WHERE te.people_id = TablePeople.id)
WHERE missingdate IS NULL