Nullif

SQL

SQL - NULLIF() Function

NULLIF() accepts two arguments and compares them for equality. If the arguments are equal, it returns NULL. If they differ, it returns the first argument. The syntax is straightforward:

Read more →
MySQL

How to Use NULLIF in MySQL

The NULLIF function in MySQL provides a concise way to convert specific values to NULL. Its syntax is straightforward: NULLIF(expr1, expr2). When both expressions are equal, NULLIF returns NULL….

Read more →