2.连接到SCOTT用户 C:\Documents and Settings\Administrator>sqlplus scott/tiger
SQL*Plus: Release 11.1.0.6.0 - Production on 星期三 7月 20 13:49:43 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
3.查询EMP表数据 SQL> select ename,sal from emp;
ENAME SAL ---------- ---------- SMITH 800 ALLEN 1600 WARD 1250 JONES 2975 MARTIN 1250 BLAKE 2850 CLARK 2450 SCOTT 3000 KING 5000 TURNER 1500 ADAMS 1100
ENAME SAL ---------- ---------- JAMES 950 FORD 3000 MILLER 1300
已选择14行。
4.将SCOTT员工的薪水修改为20000 SQL> update emp set sal=20000 where ename='SCOTT';
已更新 1 行。
SQL>
注意,这里不提交事物。
5.另外单独开启一个会话 步骤与上面的操作过程一致。 调整SCOTT的薪水为60000 Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>sqlplus scott/tiger
SQL*Plus: Release 11.1.0.6.0 - Production on 星期三 7月 20 13:57:41 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> update emp set sal=60000 where ename='SCOTT';