|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How can i search for all fields that are empty?
SELECT * FROM Categories WHERE (cat_smallimage = NULL) and variants dont seem to work triadx@aol.com |
|
#2
|
||||
|
||||
|
Have a look at the SQL "IS NULL" syntax
__________________
selwonk If I've posted some code above, you might think it looks a bit simplistic. It might be. I'd rather people tried the next step themselves rather than getting a full solution on a plate. That way they learn more! |
|
#3
|
|||
|
|||
|
Quote:
SELECT * FROM Categories WHERE (cat_image IS NULL) doesnt seem to work |
|
#4
|
|||
|
|||
|
yes try it...
try it is working cleanly
SELECT * FROM Categories WHERE cat_smallimage is NULL; |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > Finding Null's |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|