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

  1. Path: sparky!uunet!mcsun!sunic!psinntp!psinntp!dlogics!hermes.dlogics.com!dlm
  2. From: dlm@hermes.dlogics.com
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: How to print something in PL/SQL
  5. Message-ID: <1992Sep10.124721.1311@hermes.dlogics.com>
  6. Date: 10 Sep 92 12:47:21 CST
  7. References: <2662@uswnvg.uswnvg.com> <2676@uswnvg.uswnvg.com>
  8. Organization: Datalogics, Inc., Chicago, IL
  9. Lines: 23
  10.  
  11. mmcgreg@uswnvg.com (Mark McGregor) writes:
  12. > : Oracle, in their infinite wisdom, has deemed it appropriate that PL/SQL 
  13. > : have no native print utilities.   
  14. > : 
  15. > Sybase has already implemented stored procedures 
  16. > as part of there kernel and also includes a message and error facility 
  17. > with the following specifications: 
  18. >  
  19. >     if exist (select * from table) where something = something 
  20. >     print "something" 
  21. > [and] 
  22. >     Raiserror #### 'message' 
  23. >
  24.  
  25. It seems to me that Oracle could create a v$ table with columns sessionid,
  26. message. Make the "message" function one of the pl/sql kernel built-ins. The
  27. function inserts to the invisible v$ table. When the pl/sql function finishes,
  28. SQL*Plus can dump out the contents of the V$ table; SQL*forms can write the
  29. contents to the message line; SQL*reportwriter can write it to the report file.
  30. and so on. Oracle guys?
  31. -- 
  32. Dave Mausner, Senior Consultant / Datalogics Inc / Chicago IL / 312-266-4450 
  33. dlm@dlogics.com                                 Motto: Just show me the code
  34.