Home » RDBMS Server » Server Administration » SQL Output redirection
SQL Output redirection [message #375014] Thu, 19 July 2001 00:54 Go to next message
Sandy R
Messages: 1
Registered: July 2001
Junior Member
How do you redirect the output generated by an SQL statement to a text file
Re: SQL Output redirection [message #375016 is a reply to message #375014] Thu, 19 July 2001 01:35 Go to previous message
Cindy
Messages: 88
Registered: November 1999
Member
SET VERIFY OFF
SET ECHO OFF

SPOOL filename.dat

SELECT *
FROM table_name
WHERE condition1
AND condition2;

SPOOL OFF
SET verify ON
SET ECHO ON
Previous Topic: DATE TRUNCATING
Next Topic: Re: Null-Value Problem
Goto Forum:
  


Current Time: Fri Jul 05 10:20:46 CDT 2024