ClaudiaFilliponi
MIS
In PL/SQL I can do the following in a batch statement
1 declare v_num int := 0;
2 begin
3 select count(*) into v_num from test_frag where rownum < 100000;
4 update test_frag set big_column = big_column where rownum < 10;
5* end;
/
PL/SQL procedure successfully completed.
How can I do the same in SQLPLUS?
1 declare v_num int := 0;
2 begin
3 select count(*) into v_num from test_frag where rownum < 100000;
4 update test_frag set big_column = big_column where rownum < 10;
5* end;
/
PL/SQL procedure successfully completed.
How can I do the same in SQLPLUS?