Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
REM **************************************************************
REM David L. Hunt (file author) distributes this and other
REM files/scripts for educational purposes only, to illustrate the
REM use or application of various computing techniques. Neither the
REM author nor Dasages, LLC, makes any warranty regarding this
REM script's fitness for any industrial application or purpose nor is
REM there any claim that this or any similarly-distributed scripts
REM are error free or should be used for any purpose other than
REM illustration.
REM **************************************************************
set echo off
accept x prompt "Enter the table to ASCII: "
accept y prompt "Enter the flat file to write: "
prompt
prompt Following output is generated script that writes text output from table "&x"
prompt
set verify off
set feedback off
set heading off
set pagesize 0
set linesize 32767
set trimout on
set trimspool on
spool temp.sql
select 'set echo off' from dual;
select 'set feedback off' from dual;
select 'set heading off' from dual;
select 'set pagesize 0' from dual;
select 'spool &y' from dual;
select 'select ' from dual;
select decode (rownum,1,'''"''||','||'',"''||') || column_name || '|| ''"'''
from user_tab_columns
where table_name = upper('&x');
select 'from &x' from dual;
select ';' from dual;
select 'spool off' from dual;
select 'set feedback on' from dual;
select 'set heading on' from dual;
select 'set pagesize 20' from dual;
spool off
prompt
prompt Following is text output written to file "&y"
prompt
@temp
set echo off
prompt
prompt wrote file "&y"
prompt