If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Select records having null values

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-02, 04:14
Twinkle Twinkle is offline
Registered User
 
Join Date: Jul 2002
Posts: 3
Select records having null values

Hey,

How do I select records from SQL DB where field value is null?

Thanx,
Twinkle
Reply With Quote
  #2 (permalink)  
Old 07-09-02, 10:31
alligatorsql.com alligatorsql.com is offline
Registered User
 
Join Date: Jul 2001
Location: Germany
Posts: 189
Hello,

can you use

where field IS NULL ????

Hope that helps ?

Regards
Manfred Peter
(Alligator Company)
http://www.alligatorsql.com
Reply With Quote
  #3 (permalink)  
Old 09-10-02, 09:47
Sef Sef is offline
Registered User
 
Join Date: Aug 2002
Location: Kampala, Uganda - East Africa
Posts: 13
Hy,
I think there is nothing like "null values". Something that has a value is not NULL!


Otherwise, u can Select null records using

SELECT field1,
field2,
field3
FROM tabname
WHERE fieldx IS NULL

Note:
I am assuming that fieldx is the null field to be checked.


Nice time

Sef
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On