home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / ingres / 2208 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.2 KB

  1. Path: sparky!uunet!mcsun!uknet!doc.ic.ac.uk!agate!ames!pacbell.com!rtech!ingres!mikes
  2. From: mikes@Ingres.COM (Mike Schilling)
  3. Newsgroups: comp.databases.ingres
  4. Subject: Re: problem with "DESC" as column name in Windows4GL
  5. Message-ID: <1993Jan10.180201.28628@pony.Ingres.COM>
  6. Date: 10 Jan 93 18:02:01 GMT
  7. References: <1993Jan8.174834.26387@pony.Ingres.COM>
  8. Distribution: comp
  9. Lines: 22
  10.  
  11. From article <1993Jan8.174834.26387@pony.Ingres.COM>, by mikes@Ingres.COM (Mike Schilling):
  12. > Solution:
  13. > 1. call the field something other than desc (you control the field name).
  14. > 2. Write the select as:
  15. >     select :my_field = 'desc' from a;
  16. > Mike    
  17. Please disregard this: it will, of course, select the constant string
  18. 'desc' instead of the value of the column named 'desc'.
  19.  
  20. It is possible in Windows4GL 2.0 to say:
  21.  
  22.     string = 'SELECT desc FROM a';
  23.     EXECUTE IMMEDIATE 'string' INTO :my_field;
  24.  
  25. This isn't particularly inefficient, but it does lost the ability
  26. to use repeat queries.
  27. ----------------------------------------------------------------------------
  28. mikes@ingres.com = Mike Schilling, INGRES, An ASK Group Company, Alameda, CA
  29. Just machines that make big decisions,
  30. Programmed by fellows with compassion and vision.    -- Donald Fagen, "IGY"
  31.