home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / oracle / 1260 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.0 KB  |  36 lines

  1. Newsgroups: comp.databases.oracle,connect.audit
  2. Path: sparky!uunet!pipex!ibmpcug!boxfield
  3. From: boxfield@ibmpcug.co.uk (Paul J Snelling)
  4. Subject: PL/SQL problem
  5. X-Disclaimer: The views expressed in this article are those of the author
  6.     alone and may not represent the views of the IBM PC User Group.
  7. Organization: The IBM PC User Group, UK.
  8. Date: Wed, 12 Aug 1992 12:40:06 GMT
  9. Message-ID: <BsvF6u.GoE@ibmpcug.co.uk>
  10. Sender: boxfield@ibmpcug.co.uk (Paul J Snelling)
  11. Lines: 23
  12.  
  13.  
  14. This is probably a stupid question but Ive been trying all kinds of ways
  15. to get information OUT of a PL/SQL block without writing it to a table.
  16. I'm hoping that someone out there has tried the same thing and can tell me
  17. (A) how to do it, or (B) it cant be done....
  18.  
  19. My latest attempt under sqlplus goes something like...
  20.  
  21. SQL> define MYVAR=500
  22. SQL> declare
  23. 2    i  number ;
  24. 3    begin
  25. 4    for i in 1..10 loop
  26. 5      MYVAR := &MYVAR + i ;
  27. 6    end loop ;
  28. 7    end ;
  29.  
  30. A pathetic attempt, but you can see what Im trying to acheive (I hope).
  31.  
  32. Any ideas?
  33.  
  34. -- 
  35. Paul Snelling,    BoxField Systems Ltd
  36.