Which operator is used to check for NULL values in SQL?
-
A
=
-
B
IS NULL
Correct answer
-
C
== NULL
-
D
NULL=
Correct answer
B. IS NULL
13 views
Explanation
IS NULL is used to test for NULL, since = NULL does not work. Source: General SQL knowledge.
Reference
Asked in: FPSC,CSS,NTS,PPSC,PMS
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ