1.

Comparing a known value with NULL results into _______________(a) null(b) zero(c) a positive value(d) a negative valueThe question was asked during an online exam.The question is from Using the Embedded Server Library topic in division MySQL Programs Using C of MySQL

Answer»

Correct option is (a) NULL

For explanation I WOULD SAY: In MySQL, NULL is not comparable to other KNOWN values. It will result in a NULL when COMPARED to any value. The following statement would result in four NULLs: ‘SELECT NULL = 0, NULL < 0, NULL <> 0, NULL > 0′.



Discussion

No Comment Found

Related InterviewSolutions