- 论坛徽章:
- 0
|
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> show user;
USER 为 "SYS"
SQL> select status from v$instance;
STATUS
------------
OPEN
SQL> set pages 0
SQL> select 'select * from '||tname||' where rownum <= 5;' from tab
2 where tabtype = 'TABLE'
3 spool output.sql
4 /
spool output.sql
*
第 3 行出现错误:
ORA-00933: SQL 命令未正确结束
SQL> spool off
当前未假脱机
SQL> set lines 1000
SQL> spool all_tab.txt
SQL> @output
SP2-0310: 无法打开文件 "output.sql"
SQL> spool off |
|