Home » MYSQL » Mysql Setup » Question
  1. What does comparing a known value with NULL result into?
    1. a negative value
    2. null
    3. zero
    4. a positive value
    5. None of these
Correct Option: B

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’.



Your comments will be displayed only after manual approval.