home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / oracle / 1516 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.0 KB

  1. Path: sparky!uunet!usc!rpi!batcomputer!munnari.oz.au!manuel!sserve!hhcs.gov.au!pihlab
  2. From: pihlab@hhcs.gov.au
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: How to print something in PL/SQL
  5. Message-ID: <1992Sep7.100426.353@hhcs.gov.au>
  6. Date: 7 Sep 92 10:04:26 +1000
  7. References: <shamel.715612348@tdsb-s> <2662@uswnvg.uswnvg.com>
  8. Organization: Aust. Dept. Health, Housing and Community Services
  9. Lines: 32
  10.  
  11. > Oracle, in their infinite wisdom, has deemed it appropriate that PL/SQL
  12. > have no native print utilities.  A rather hideous means of "printing"
  13. > is to write results to a table and then print them out with a select
  14. > statement following the PL/SQL script.  But this is horrible (and costly
  15. > in terms of extra database access) alternative to a print statement.
  16.  
  17. I think that they actually are worried about supporting the I/O now that
  18. they've introduced stored procedures because the interface would have to be in
  19. the Kernel itself.  
  20.  
  21. I've been toying with the idea that SQL*Connect could be used to write output
  22. from within PL/SQL but you would have to define a "table" to SQL*Connect that
  23. is really an OS output stream.  Unfortunately, we don't have SQL*Connect/RMS
  24. here so I can't play with it.
  25.  
  26. Another alternative would be to invoke SQL*Forms3 from inside SQL*Plus to do
  27. the PL/SQL stuff (with messages) but that's taking a sledge hammer to the
  28. problem and would probably not work too well.
  29.  
  30. At the moment, if you want output then you go thru tables OR use a 3GL.
  31.  
  32. -- 
  33.  
  34. Bruce...        pihlab@hhcs.gov.au
  35.                  ^^
  36. *******************************************************************
  37. * Bruce Pihlamae  --  Database Administration                     *
  38. * Commonwealth Department of Health, Housing & Community Services *
  39. * Canberra, Australia                             (W) 06-289-7056 *
  40. *******************************************************************
  41. * These are my own thoughts and opinions, few that I have.        *
  42. *******************************************************************
  43.