Oracle
 sql >> Datenbank >  >> RDS >> Oracle

Oracle-Sperre mit SELECT...FOR UPDATE OF

Von der 10G PL/SQL-Dokumentation :

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;