Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Searching Null and Blank

Author  Topic 

chipembele
Posting Yak Master

106 Posts

Posted - 2009-11-03 : 04:12:06
Hi
I know how to find NULLs by using IS NULL but can anyone advise on how to search for blank/empty fields. I suspect that if something has been removed from a field it's not a NULL as it was before it was filled.

I'm using WHERE fieldname IS NULL or fieldname " "

any advice appreciated.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-11-03 : 04:17:14
WHERE fieldname IS NULL or fieldname = ''



Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

chipembele
Posting Yak Master

106 Posts

Posted - 2009-11-03 : 04:30:05
Thanks

Is that one of these " or two of these ' '
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-11-03 : 04:32:13
it is two single quotes

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

chipembele
Posting Yak Master

106 Posts

Posted - 2009-11-03 : 04:33:20
Thankyou
Go to Top of Page
   

- Advertisement -