Concept空值 / 未知值
NULL
A special marker in SQL representing 'unknown' or 'missing' data, distinct from zero or an empty string. It follows three-valued logic in operations and produces special behavior in aggregation, filtering, joins, and other contexts.
Timeline (last 90 days)
Sep 12
In SQL's three-valued logic, the result of any comparison operation involving NULL is UNKNOWN, rather than TRUE or FALSE.
Unverified50%
Sep 12
In PostgreSQL, SELECT NULL = NULL returns NULL rather than TRUE.
Unverified50%