Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

Bloqueio Oracle com SELECT...FOR UPDATE OF


Da documentação 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;