| SQL: Fetch all the fields that are NULL |
| Monday, 04 February 2008 | |
|
select * from YourTable where YourField = NULL In SQL, NULL is not a value but a state indicating that an item's value is unknown or nonexistent. It is not zero or blank or an “empty string” and it does not behave like any of these values. Few things in SQL lead to more confusion than NULL, and yet its workings shouldn't be hard to understand as long as you stick to the following simple definition: NULL means unknown. [Firebird] Hence the ff. statement won't return the NULL fields:
IsNull function won't work because it requires some parameters/arguments. The fact that it is a function. Here's a statement that would work with NULLs:
I should remember those two words. I kept on forgetting.
|
| < Prev | Next > |
|---|



I am Mae German. 32 years old. Born in Mangatarem, province of Pangasinan. I was taught and trained by 






