반응형
oracle spool
sql> spool output.txt
sql> set echo off;
sql> set feedback on;
sql> set time on;
sql> set timing on;
sql> clear columns;
sql> set pages 40;
sql> set line 200;
sql> column ename format a10;
sql> col job for a10;
sql> col sal for 9,999;
sql> col deptno for 99;
sql> prompt ****************************************
sql> select * from emp;
sql> prompt ****************************************
sql> spool off;
temp.sql
--------------------------------
select * from emp;
--------------------------------
sql> @tmp.sql > output.txt;
반응형
'Oracle(DB관련)' 카테고리의 다른 글
Full Text Indexing using Oracle Text (0) | 2017.09.15 |
---|---|
oracle index (1) | 2017.09.15 |
oracle10g R2 group by / order by (0) | 2017.07.31 |
오라클 10g 함수 (0) | 2017.07.31 |
Oracle TABLE 정보관련 및 VIEW (0) | 2017.07.17 |