DECLARE CURSOR cursLivre IS SELECT liv_num, liv_titre FROM livre ORDER BY liv_num FOR UPDATE OF liv_num; BEGIN FOR monLivre IN cursLivre LOOP UPDATE livre SET liv_num = liv_num+200 WHERE CURRENT OF cursLivre; END LOOP; COMMIT; -- valide les modifications et lève le verrou END;