karlangadas

pregunta 1 lab 4 bd

Oct 28th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.34 KB | None | 0 0
  1. CREATE OR REPLACE PROCEDURE P_ProductosSinDescripcion(  errores OUT NUMBER) IS
  2. BEGIN
  3. UPDATE L4_PRODUCTO SET DESCRIPCION= NOMBRE WHERE DESCRIPCION IS NULL;
  4. errores:=SQL%ROWCOUNT;
  5. COMMIT;
  6. END P_ProductosSinDescripcion;
  7.  
  8. SET SERVEROUTPUT ON
  9. DECLARE
  10. errores NUMBER;
  11. BEGIN
  12. P_ProductosSinDescripcion(errores);
  13. DBMS_OUTPUT.put_line(errores);
  14. END;
Advertisement
Add Comment
Please, Sign In to add comment