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