expression IS NOT NULL

Description: Tests whether preceding expression is not NULL, returning TRUE if it is not NULL, or FALSE otherwise.

Examples:

  • 'abc' IS NOT NULL returns 1.

  • NULL IS NOT NULL returns 0.

See also: IS NULL

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.