merge into ERP_DWXX Ausing BC_ERP_dwXX@Ctdb Bon (A.WLDWID=B.WLDWID and A.wlxxid=B.WLXXID and A.wldwid<>'0')when matched then update set A.HSGX = B.HSGX ;