spool 命令详解(Oracle数据库)

记录 数据库命令 操作,并且储存在txt文件中

1、启动 spool 命令

SQL> spool path;

path是创建记录命令的文件的绝对路径

2、clear screen 命令

SQL> clear screen;

clear screen 命令用于清屏,但不会清除txt文件里的记录

3、关闭 spool 命令

SQL> spool off;

spool off 命令用于关闭txt文件的写入

4、对齐表命令

SQL> set linesize 999;
SQL> set pagesize 999;

set linesize 999 用于输出每页行数,缺省值为 999

set pagesize 999 用于输出一行字符个数,缺省为 999

发布了6 篇原创文章 · 获赞 6 · 访问量 70

猜你喜欢

转载自blog.csdn.net/qq_44158936/article/details/104674439