1:查询 当前用户所有表名称
select table_name from user_tables;
2:查询 当前用户下表的数量
select count(*) from user_tables;
3:解锁用户
alter user scott account unlock;
4:解锁用户后设置密码
alter user scott identified by Admin888;
5:设置每行的显示字符数
set linesize 200;
6:设置每页显示的行数
set pagesize 8;
7:设置页与页之间的间隔
set newpage 8;
8:@指令使用
1:准备一个.sql文件
2:@+文件路径
9:spool命令使用
1: spool +文件路径
2:sql语句
3:spool off
10:格式化查询
1:格式化列名称
column ename heading '名字';
2:设置头部标题
ttitle center ‘员工信息表’
3:设置尾部标题
btitle left '2022-5-20'
4:column sal format $999,999,999.00
5:查看某一列的显示属性
column sal
6:清除列的显示属性
column sal clear;
7:清除所有列的显示属性
clear columns;
11;prompt指令
12:缓存区
1:查询语句
2: save +文件路径
3:/执行
13:清空缓冲区
clear buffer;