As with other languages, NULL should represent non-existent data. In
SQL, null is just represented as NULL. Columns can be set NOT NULL, which means every row must have some data for that column. In
SQL, unlike
PHP, NULL does not cast to zero. So NULL + 2 = NULL, and NULL < 2 evaluates to NULL, not TRUE.
Discussion