Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: [Q] SQL Help!! How to make select left justify and fill space??

RE: [Q] SQL Help!! How to make select left justify and fill space??

From: Mladen Gogala <mladen_at_wangtrading.com>
Date: Wed, 27 Aug 2003 11:59:32 -0800
Message-ID: <F001.005CD861.20030827115932@fatcity.com>


Well, people are trying to use SQL*Plus as if it was a report generating tool, which it isn't.
To tell the truth, I started using perl because of its formatting capabilities (I hope you still
do remember the old &ora_login stuff from perl4?) because my report looked so much nicer
then with sqlplus. I don't have running sums, but they're rarely needed. On the other hand,
I can do left and right justification, top of the page format, multiline fields (impossible to do
with sqlplus) and a lot of other good stuff, like conditional printing (that's why perl has
"if" statement). The ideal thing for generating pretty reports out of any database is called
perl. It's cheap, it's well documented ("Learning Perl", "Perl Programming",

"Perl Cookbook",
"Perl for Oracle DBA", "Advanced Perl Programming", "Perl for Sys Admins",
"Perl Objects, 

References & Modules","Learning Perl Tk", "Object Oriented Perl Programming", I have a
whole shelf devoted to perl.I have a hunch that when Cary's book gets into the circulation,
there will be another book on that shelf. If that is not a well documented language, then I
don't know what is) and is ideally suited for the purpose. Yet, people are still using sqlplus.
Why? It beats me.    
--
Mladen Gogala
Oracle DBA 


-----Original Message-----
Jared.Still_at_radisys.com
Sent: Wednesday, August 27, 2003 3:00 PM
To: Multiple recipients of list ORACLE-L
e??



LOL! 





	"Mladen Gogala" <mladen_at_wangtrading.com> 
Sent by: ml-errors_at_fatcity.com 


 08/27/2003 10:04 AM 
 Please respond to ORACLE-L 


        
        To:        Multiple recipients of list ORACLE-L
<ORACLE-L_at_fatcity.com> 
        cc:         
        Subject:        RE: [Q] SQL Help!! How to make select left justify
and fill space??



Use something like 

FORMAT STDOUT=

@<<<<<<<< @>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$id, $empname Note: This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mladen Gogala INET: mladen_at_wangtrading.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Received on Wed Aug 27 2003 - 14:59:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US