CURSOR FOR UPDATE
SAVEPOINT UPDATE_ROWS
LOCK TABLE IN EXCLUSIVE MODE
UPDATE PRODUCT
1 CURSOR PRODUCTS IS 2 SELECT PRODUCT_ID, STORE_COST 3 FROM PRODUCT 4 WHERE LAST_UPDATE_DATE > ’01-JUL-99’ 5 FOR UPDATE OF PRODUCT TABLE;
ROLLBACK TO SAVEPOINT_1;
COMMIT;
CREATE INDEX NEW_IX ON PRODUCT (PRODUCT_NAME);
UPDATE PRODUCT SET LAST_UPDATE_DATE = SYSDATE;