Can you explain why would you want to go with far more complicated and far less efficient way (using PL/SQL with cursor loop) when such a trivial SQL UPDATE statement can do the job?