I appreciate the semantic meaning of a NULL value in a database table, different from both false and the empty string \'\'. However, I have often read about performance pro
The empty string should not be used in place of NULL
. NULL
represents nothing where as the empty string is something, with nothing inside. NULL
will always be false when compared to another value (even NULL
) and NULL
will not be summed in the COUNT
function.
If you need to represent unknown information there is no substitute to NULL
.