Pages

Showing posts with label PL/SQL NULLIF. Show all posts
Showing posts with label PL/SQL NULLIF. Show all posts

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;