Basic shell script print query results into a file, values separated by special char.
#!/usr/bin/ksh
#filename querytofile.ksh
# mm 2004-08-23 testend on HP-UX, SunOS
#example print query results into a file
sqlplus -s /nolog <<eofs
--connect user to db
conn scott/tiger
set feedback off
set pagesize 0
set echo off
set heading off
--using pipe | as value separator
set colsep |
set pagesize 0
set serveroutput off
spool data.dat
select owner, table_name from all_tables where rownum < 10 order by 1;
spool off
quit
eofs
Warning: include(ads/text468x15.html): failed to open stream: No such file or directory in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131
Warning: include(): Failed opening 'ads/text468x15.html' for inclusion (include_path='.;C:\php\pear') in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131
A good scientist is a person with original ideas.
A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. Freeman Dyson
A good scientist is a person with original ideas.
A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. Freeman Dyson
fishScript.Com is accessible by Mobile access technology
as mobile phones, Palm and Pocket PC .
Nicoleta e Marco Magnani tutorial, examples, courses, esempi, corsi, esercizi, appunti vari Dottoressa Nicoleta Dragu Formatrice Docente Insegnante Mediatrice Culturale
Dott. Marco Magnani Universita La Sapienza Roma Master Computer Science Hunter College New York , Data Base Administrator DBA oracle System architect