create or replace procedure dddd
is
begin
update Cus_B a
   set (a.col1,a.col2,....) = (select col1,col2,......
                                from Cus_A
                               where ID = a.ID);
--上面的Sql要求ID唯一                           
insert into Cus_B(col1,col2,....)
    select col1,col2,.....
      from Cus_A
     where ID not in (select ID from Cus_B);end;