Answers for "null if postgresql"

SQL
1

nullif postgresql

SELECT
	NULLIF (1, 1); -- return NULL

SELECT
	NULLIF (1, 0); -- return 1

SELECT
	NULLIF ('A', 'B'); -- return A
Code language: SQL (Structured Query Language) (sql)
Posted by: Guest on October-29-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language