sqlplus 中exit 命令的隱式commit

msdnchina發表於2011-08-19
C:>sqlplus scott/aaaaaa

SQL*Plus: Release 11.1.0.6.0 - Production on Fri Aug 19 10:27:42 2011

Copyright (c) 1982, 2007, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> desc scott.dept
Name Null? Type
----------------------------------------- -------- ----------------------------

DEPTNO NOT NULL NUMBER(2)
DNAME VARCHAR2(14)
LOC VARCHAR2(13)

SQL> select *from dept;

DEPTNO DNAME LOC
---------- -------------- -------------
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON

SQL> update dept set dname='sales_kao' where deptno='30';

1 row updated.

SQL> exit

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Pr
oduction
With the Partitioning, OLAP, Data Mining and Real Application Testing options

C:>sqlplus scott/aaaaaa

SQL*Plus: Release 11.1.0.6.0 - Production on Fri Aug 19 10:28:39 2011

Copyright (c) 1982, 2007, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select *from dept;

DEPTNO DNAME LOC
---------- -------------- -------------
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 sales_kao CHICAGO
40 OPERATIONS BOSTON

SQL>[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1054045/,如需轉載,請註明出處,否則將追究法律責任。

相關文章