175666246 declare cursor c_std is select distinct blact1,blact2,blact3,blact4 from xxstd.

xxstd_iascp032; cursor c_ccid is select * from gl_code_combinations; l_count number:=0; begin for r_std in c_std loop insert into xxcnv.XX_GL_XREF_MAPPING values(r_std.blact1,r_std.blact2,r_std.blact3,r_std.blact4,null,null,null,null,n ull,null); end loop; for r_ccid in c_ccid loop update xxcnv.XX_GL_XREF_MAPPING set segment1=r_ccid.segment1 ,segment2=r_ccid.segment2 ,segment3=r_ccid.segment3 ,segment4=r_ccid.segment4 ,segment5=r_ccid.segment5 ,segment6=r_ccid.segment6 where segment1 is null and rownum < 206 ; end loop; end loop; commit; end;

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.