Using Null with Select Statement

PedroA

Active member
Joined
Oct 14, 2013
Messages
26
Programming Experience
Beginner
Hi,

The below code works fine.

VB.NET:
 [FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2]Query = [/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]"SELECT cid FROM tdata WHERE hno = '100' AND eid IS NULL"[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]

However, I cannot find a way to check if 'eid' is not null. 'IS NOT NULL' doesn't work.

How can this be done?

Appreciate any help.

Cheers
 
Back
Top