Article View: borland.public.vdbase.data.sql
Article #1312Compare Boolean Field
From: Wilson Woo
Date: Mon, 02 Mar 1998 00:00
Date: Mon, 02 Mar 1998 00:00
21 lines
1036 bytes
1036 bytes
I'm using Delphi TTable & TQuery components to select table records.
The table is used to store staff information.
There is a field named 'ACTIVE', which is Boolean type, to reveal that
the staff is working or resigned ('ACTIVE' = True for working).
My question is how to use SQL to select all staff that is working
('ACTIVE' = True)?
I have tried:
select * from STAFF where 'ACTIVE' = True
but no record returned.
The table, STAFF.DBF, is a Fox Pro database.
Thank you for kind attention.
Please reply by email as well.
Wilson.
Technical Details
Message-ID:
<34FA7B59.5683@hk.super.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,ea61e9b41b41e3d6,start X-Google-Attributes: gidff5a1,public From: Wilson Woo <wilson00@hk.super.net> Subject: Compare Boolean Field Date: 1998/03/02 Message-ID: <34FA7B59.5683@hk.super.net> X-Deja-AN: 329954507 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Newsgroups: borland.public.vdbase.data.sql