If the two parameters are equal,
NULLIF
function is going to return
NULL
SELECT
    id,
    first_name,
    NULLIF(gender, 0) student_gender
FROM students
by Valeri Tandilashvili
4 years ago
MySQL
NULLIF
Full MySQL Course for Beginners
1
Pro tip: use ```triple backticks around text``` to write in code fences