0
在更新查詢我得到這個錯誤單行子查詢在這裏返回多行是我更新查詢單行子查詢返回不止一行,同時更新
UPDATE GT_POLICY GP SET (ERP_POLICY_NO,ERP_INSERT_DATE,ERP_CUSTOMER_ID) = (SELECT ERP.POLICY_NUMBER,ERP.ISSUE_DATE,ERP.MDM_ID FROM ERP_POLICY_DETAILS ERP WHERE GP.ALTERNATE_POLICY_NO=ERP.ALT_POL_NO AND ERP.ALT_POL_NO LIKE 'POL%') WHERE GP.ERP_POLICY_NO IS NULL AND GP.RECORD_STATUS='Y';