|
selecting all fields with a null value
hi,
Ihaev the below sql script,
SELECT t_newsID,dtm_date,str_title,str_body,flg_archived, flg_active,flg_NIB FROM tbl_News WHERE (flg_archived=0 or flg_archived=1)
I wish though to select all records where intBranchID = null thus not selecting those where intBranchID is a numeric value.
My selection doesnt seem to work if I use FROM tbl_News WHERE (flg_archived=0 or flg_archived=1) AND intBranchID= " "
How do i script this please.
My field in db is showing NULL
cheers
Steve
|