When I spool select query results with SQL*Plus,
It always add query strings to the spooled file.
How to spool without query string?
I need to use the spooled file in a cron job.
But because the spooled file has garbage strings, it's very difficult to
use that.
Regards,
KwonNam.
This removes all the text from the query result. Only remains the
values of the select
I hope it's usefull to you.
Regards,
Isa
> Hi:
> you can put at the beginning of the select:
> set termout off
> set arraysize 5
> set echo off
> set verify off
> set heading off
You could also add "set pages 0" to eliminate empty line after each page.
--
Noel
"Noel" <tb...@go2.pll-l> wrote in message
news:dgtspl$5mh$1...@inews.gazeta.pl...
Why arraysize 5? That should do nothing but slow down the query
by quite a bit. I'd suggest you try with an arraysize of 100-200
as a general rule.
--
Daniel A. Morgan
http://www.psoug.org
damo...@x.washington.edu
(replace x with u to respond)
But when I try this, I had to make *.sql script file
and run like "sqlplus user/passwd @test.sql"
It did not work interactively on sql*plus.
Anyway that's what I exactly wanted.
Thanks again.
Is it possible to remove that line?
Thanks.
~
Son KwonNam 쓴 글:
SET FEEDBACK OFF
--//**
SQL> select * from cat where rownum = 1;
TABLE_NAME TABLE_TYPE
------------------------------ -----------
AA TABLE
SQL> set feedback on
SQL> /
TABLE_NAME TABLE_TYPE
------------------------------ -----------
AA TABLE
1 row selected..
SQL> set feedback off
SQL> /
TABLE_NAME TABLE_TYPE
------------------------------ -----------
AA TABLE
SQL>
--
TomekB tb...@go2.pl-l