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