Oracle
 sql >> Database >  >> RDS >> Oracle

Blocco Oracle con SELECT...FOR UPDATE OF

Da documentazione 10G PL/SQL :

DECLARE
  CURSOR c1 IS SELECT last_name, department_name FROM employees, departments
    WHERE employees.department_id = departments.department_id 
          AND job_id = 'SA_MAN'
      FOR UPDATE OF salary;