Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

ISNULL

Example

Check if an expression is NULL.

SELECT ISNULL(NULL);

Definition and Usage

The ISNULL() function evaluates whether an expression is NULL, returning 1 for true (if NULL) or 0 for false (if not NULL).

This function returns 1 if the expression is NULL; otherwise, it returns 0.

Syntax

ISNULL(expression)

Parameter Values

Parameter

Description

expression

Required: The value to be evaluated.

Technical Details

Works in:

 From MySQL version 4.0

More Examples

Example

Check if an expression is NULL.

SELECT ISNULL(“”);

Example

Determine if an expression is NULL.

SELECT ISNULL(350);

Example

Check if an expression is NULL.

SELECT ISNULL(“Hello world!”);