home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!bronze!gribble
- From: gribble@bronze.ucs.indiana.edu (steve gribble)
- Subject: Re: ABF/4GL Help
- Message-ID: <1992Jul29.131855.12743@bronze.ucs.indiana.edu>
- Organization: Indiana University
- References: <1992Jul22.180503.27010@homebase.vistachrome.com> <l6v00iINN8qf@jethro.Corp.Sun.COM> <4352@disuns2.epfl.ch> <1992Jul28.185544.17880@emr1.emr.ca>
- Date: Wed, 29 Jul 92 13:18:55 GMT
- Lines: 51
-
- In <1992Jul28.185544.17880@emr1.emr.ca> kasvand@ccrs.emr.ca (Tony Kasvand) writes:
-
-
- > Hi,
- > I have a small problem with the ABF/4GL (Ingres 6.4) language.
-
- > In the 'where' clause of a callframe statement, I would like to simulate
- >the 'field' condition.
-
- > Example -
- >
- > look_for = 'Joe'; /* varchar(10) */
- > whclause = 'fixer'; /* varchar(15) */
- > callframe by_fixed_second(by_fixed_second.programs =
- > select distinct key_b = unique_bug#,
- > type_p = product_type,
- > prior = priority,
- > cond = condition,
- > name_p = product_name,
- > usrnm = username,
- > fix = fixer,
- > d_of_bug = date_of_bug,
- > name_sys = system_name,
- > des =details1
- > from bug_reports_table
- > /* ****** -->*/ where :whclause = :look_for
- > order by prior );
-
- > I am assuming from this code, this is what it should look like:
- > where 'fixer' = 'Joe'
-
- >**->
- > What I really want is: where fixer = 'Joe'
-
- >
-
- Yes, make the whclause varchar(25) and concatenate the fields together.
- e.g whclause = 'fixer= ' + '''' + 'Joe' + '''';
- ...
- where :whclause
-
- i've done this many times, i must admit the quadruple quotes aren't
- very intuitive or clean ... 'fixer= ' + '''Joe''';
- should work, too, but i haven't tried it that way.
-
-
- hope this helps,
- steve
- A
- A
- steve
-