home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / oracle / 2160 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.1 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!sol.ctr.columbia.edu!ira.uka.de!ira.uka.de!math.fu-berlin.de!informatik.tu-muenchen.de!LRZnews!cd1!a2824cd
  2. From: a2824cd@cd1.LRZ-Muenchen.DE
  3. Newsgroups: comp.databases.oracle
  4. Subject: Use of variables in "SELECT" Statements ???
  5. Message-ID: <a2824cd.721394002@cd1>
  6. Date: 10 Nov 92 11:13:22 GMT
  7. Sender: news@news.lrz-muenchen.de (Mr. News)
  8. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  9. Lines: 22
  10.  
  11. Maybe somebody can help us with our problem...
  12.  
  13. We are two students, trying to create a sqlform30 application 
  14. (also using SQL, PL/SQL and the other products that come with 
  15. oracle V.6).  
  16.  
  17. We try to use variables in SELECT Statements like :
  18.  
  19. SELECT var1 INTO var2 FROM table WHERE ... 
  20.  
  21. var1 should be a variable for a column name, var2 should be just 
  22. a variable, containing the result of the SELECT statement and table
  23. should be a table name.
  24.  
  25. Our problem is now to get the value of var1.
  26.  
  27. What happens is, that the "name" and not the "value" of var1 is 
  28. stored into var2.
  29.  
  30. Thanks for all your efforts..
  31.  
  32. Peggy and Peter.   
  33.