MERGE INTO A
USING (SELECT B.ID,B.start_time-C.start_time tmp_time FROM B,C WHERE B.c_id = C.id ) TMPB
ON (A.ID = TMPB.ID)
WHEN MATCHED THEN
UPDATE
SET A.relative_starttime = TMPB.tmp_time
------其他解决方案-------------------- UPDATE A
SET A.relative_starttime=(SELECT B.start_time-C.start_time FROM B,C WHERE b.c_id = c.id)
WHERE A.ID IN (SELECT B.ID FROM B); ------其他解决方案-------------------- 好像不行啊。。。 ------其他解决方案--------------------