Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. DECLARE
  2.  
  3. PROCEDURE moverEmpleadoProcedure( idEmp NUMERIC, idDepa NUMERIC )
  4. IS BEGIN
  5. UPDATE empleado SET id_dep = idDepa, salario = salario + salario * 2 / 100 WHERE id = idEmp;
  6. END moverEmpleadoProcedure;
  7.  
  8. BEGIN
  9. moverEmpleadoProcedure( 2, 2);
  10.  
  11. END;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement