home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / oracle / 1124 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!ubc-cs!unixg.ubc.ca!unixg.ubc.ca!fragante
  3. From: fragante@unixg.ubc.ca (Gv Fragante)
  4. Subject: Re: Displaying variables in PL SQL
  5. Message-ID: <fragante.711919063@unixg.ubc.ca>
  6. Sender: news@unixg.ubc.ca (Usenet News Maintenance)
  7. Nntp-Posting-Host: unixg.ubc.ca
  8. Organization: University of British Columbia, Vancouver, B.C., Canada
  9. References: <1992Jul22.203558.25081@indetech.com>
  10. Distribution: usa
  11. Date: Thu, 23 Jul 1992 19:17:43 GMT
  12. Lines: 17
  13.  
  14. In <1992Jul22.203558.25081@indetech.com> gopi@indetech.com (Prakash Gopinath) writes:
  15.  
  16.  
  17. >I am using Oracle ver 6.0. I want to display variables used in PL SQl onto the console.
  18. >Is it possible? 
  19.  
  20. >Please help!
  21.  
  22. >Thanks
  23. >Gopinath
  24.  
  25. Use the Message() function. As in MESSAGE(:GLOBAL.MY_VARIABLE). If you want
  26. to display a numeric variable, use the TO_CHAR() function as in
  27. MESSAGE(TO_CHAR(:GLOBAL.MY_NUM_VARIABLE)).
  28.  
  29. Use Message() to display :SYSTEM, :GLOBAL and local variables. YOu can string
  30. variables together so that you can see them in one MESSAGE() command.
  31.