对PLSQL程序块自动提交的验证

开始

代码块如下:

BEGIN



 update emp_cpy set empno=3000 where deptno=20;



END;

执行后,再开一个session, 查询:

SQL> select * from emp_cpy where deptno=20;



     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM

---------- ---------- --------- ---------- --------- ---------- ----------

    DEPTNO

----------

      3000 SMITH      CLERK           7902 17-DEC-80        800

        20



      3000 JONES      MANAGER         7839 02-APR-81       2975

        20



      3000 SCOTT      ANALYST         7566 19-APR-87       3000

        20





     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM

---------- ---------- --------- ---------- --------- ---------- ----------

    DEPTNO

----------

      3000 ADAMS      CLERK           7788 23-MAY-87       1100

        20



      3000 FORD       ANALYST         7566 03-DEC-81       3000

        20





SQL> 

结束

你可能感兴趣的:(plsql)