日期:2014-05-17 浏览次数:20678 次
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