delphi "Invalid use of keyword" in TQuery

Posted by Baldric on Stack Overflow See other posts from Stack Overflow or by Baldric
Published on 2008-09-23T11:50:49Z Indexed on 2010/05/13 8:44 UTC
Read the original article Hit count: 259

Filed under:
|
|

I'm trying to populate a TDBGrid with the results of the following TQuery against the file Journal.db:

select * from Journal where Journal.where = "RainPump"

I've tried both Journal."Where" and Journal.[Where] to no avail.

I've also tried: select Journal.[Where] as "Location" - with the same result.

Journal.db is a file created by a third party and I am unable to change the field names.

The problem is that the field I'm interested in is called 'where' and understandably causes the above error. How do I reference this field without causing the BDE (presumably) to explode?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about tquery