Article View: borland.public.cppbuilder.database.ado
Article #2877Re: How to query empty field
From: Viatcheslav V. Vassiliev
Date: Sat, 22 Feb 2003 08:33
Date: Sat, 22 Feb 2003 08:33
35 lines
2170 bytes
2170 bytes
For most DBMS: SELECT * FROM Normal WHERE Report_Date IS NULL ---------------------------------------------------------------- Regards, Viatcheslav V. Vassiliev http://www.oledbdirect.com The fastest way to access MS SQL Server, MS Jet (MS Access) and Interbase (through OLEDB) databases. "chao" <lylyx@ynmail.com> �������/�������� � �������� ���������: news:3e56cf0e@newsgroups.borland.com... > Hi all, Does anyone can tell me how to query records that some fields has no > content. > for example: > Table Name: Normal > --------------------------------------- > ID Report_Date Reporter ... > 1 2002-05-05 aaa > 2 fdf > 3 2003-1-15 bbb > 4 2003-2-1 ccc > 5 ddd > 6 ddd > ----------------------------------------- > the exaple is my database structure > I want query all the record that Report_Date field is NULL, > i.e. the second the fifth and the sixth record will be found. > I think the SQL will be like this: > select * form Normal where Report_Date = NULL > but I can not find any record. > >
Technical Details
Message-ID:
<3e573870$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3e56cf0e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,61cd8900d120307 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-02-22 01:08:55 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3e56cf0e@newsgroups.borland.com> Subject: Re: How to query empty field Date: Sat, 22 Feb 2003 11:33:33 +0300 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.247.201.57 Message-ID: <3e573870$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1045903472 213.247.201.57 (22 Feb 2003 00:44:32 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail