日期:2014-05-17 浏览次数:20966 次
UPDATE siebel.S_DOC_AGREE_BU A SET
A.BU_ID = ( select distinct(c.bu_id)
from siebel.s_doc_agree b, siebel.S_ORG_EXT c
WHERE A.AGREEMENT_ID = b.row_id
and c.par_row_id = B.X_ACCNT_ID);
UPDATE SIEBEL.S_DOC_AGREE_BU A
SET A.BU_ID =
(SELECT DISTINCT (C.BU_ID)
FROM SIEBEL.S_DOC_AGREE B, SIEBEL.S_ORG_EXT C
WHERE A.AGREEMENT_ID = B.ROW_ID
AND C.PAR_ROW_ID = B.X_ACCNT_ID) WHERE A.AGREEMENT_ID = ????;