• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

Select NULL

Hey folks,
  I have a field in my table that is integer

There is some data that when it gets imported has no data for this field.

When I do a Select * from customer I see "NULL" in the field.

However I can't select on that example...none of the select statements below work...
Little help?

Select * from customer where oldid = NULL
Select * from customer where oldid = 'NULL'
Select * from customer where LEN(oldid) < 1
1 Solution
select * from customer where oldid is null
if you dont need to display null values then u can give as

Select * from customer where oldid is not NULL


Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now