Oracle

(MEMO:利用spool缓冲池技术)

具体步骤如下:

1、在Oracle PL/SQL中输入缓冲开始命令,并指定输出的文件路径和文件名

spool d:\output.txt

2、在命令中输入相应的SQL查询命令

select * from customer;

...

3、在命令行中输入缓冲结果命令

spool off;

系统将缓冲池的结果输出到“output.txt”中,并以TAB分隔。