background image

  2  where sal > 2000
  3*    and deptno = 20
SQL> 3
  3*    and deptno = 20
SQL> c /20/10
  3*    and deptno = 10
SQL> l
  1  select * from emp
  2  where sal > 2000
  3*    and deptno = 10
10->CHANGE/text(C/text) 删除当前行中的 text
SQL> l
  1  select * from emp
  2  where sal > 2000
  3*    and deptno = 10
SQL> 3
  3*    and deptno = 10
SQL> c /and deptno = 10
  3*
SQL> l
  1  select * from emp
  2  where sal > 2000
  3*
11->CLEAR BUFFER(CL BUFF)清除整个 SQL 缓冲区
SQL> cl buff
buffer cleared
SQL> l
SP2-0223: No lines in SQL buffer.
12->DEL 删除当前行
SQL> l
  1  select * from emp
  2* where sal > 2000
SQL> del 2
SQL> l
  1* select * from emp
13->show user 显示当前登陆的用户
SQL> show user  
USER is "SYS"
SQL> conn scott/tigger
Connected.
SQL> show user
USER is "SCOTT"
14->SAVE 保存当前缓冲区的内容到文件
SQL> l