declare begin for i in (select * from emp) loop if i.sal=1300 then update emp set sal=13000; end if; end loop; end;
This code
delete that code and just use:
update emp set sal = 13000 where sal = 1300