home *** CD-ROM | disk | FTP | other *** search
- 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
- From: a2824cd@cd1.LRZ-Muenchen.DE
- Newsgroups: comp.databases.oracle
- Subject: Use of variables in "SELECT" Statements ???
- Message-ID: <a2824cd.721394002@cd1>
- Date: 10 Nov 92 11:13:22 GMT
- Sender: news@news.lrz-muenchen.de (Mr. News)
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Lines: 22
-
- Maybe somebody can help us with our problem...
-
- We are two students, trying to create a sqlform30 application
- (also using SQL, PL/SQL and the other products that come with
- oracle V.6).
-
- We try to use variables in SELECT Statements like :
-
- SELECT var1 INTO var2 FROM table WHERE ...
-
- var1 should be a variable for a column name, var2 should be just
- a variable, containing the result of the SELECT statement and table
- should be a table name.
-
- Our problem is now to get the value of var1.
-
- What happens is, that the "name" and not the "value" of var1 is
- stored into var2.
-
- Thanks for all your efforts..
-
- Peggy and Peter.
-