Pages

How to use NULLIF?

NULLIF(a, b) function compares a and b, if they are equal then it returns NULL, else returns a.

SELECT NULLIF('Zeynal', name) FROM students;

No comments:

Post a Comment