1 sqlplus T
2 sqlplus scott /bwf123456
3 sqlplus scott
4 SELECT * FROM tab
设置每行显示的数据长度 SET LINESIZE 100
设置每页显示的数据行数 SET PAGESIZE 30
5 COL tname FOR A20;
6 select * from dept ;
7. CONN[ECT] 用户名/密码 [ AS SYSDBA| SYSUSER]
8 CONN sys/bwf AS SYSDBA
9 conn system/bwf123456;
10 清屏 :clear src
11 SQL> show user
USER 为 "SYSTEM"
SQL>
12 、SQL> SELECT * FROM scott.dept;
13 ED mldn 默认的文件名后缀就是 “*.sql”
SELECT * FROM scott.dept
@mldn 默认使用的是 “.sql后缀”
13、SELECT [DISTINCT] * | 列名 别名 ,.........
FROM 数据表 [别名];
1 )SELECT * FROM dept;
2 ) SELECT * FROM EMP;
3 )
SELECT empno,ename ,job,sal
FROM emp;
4)
SELECT empno,ename,job,sal*12 income
from emp;
5)
SELECT empno,ename,job,sal*15+600*12 +5*100 income
from emp;