1.

The expression ‘HI’ LIKE NULL results in _____________(a) True(b) False(c) NULL(d) 0The question was asked in homework.Query is from Expression Evaluation and Type Conversion in chapter Data Types of MySQL

Answer»

Right answer is (c) NULL

The BEST explanation: In MYSQL, any pattern matching that is performed with the ‘NULL’ operand, fails. Expressions LIKE: ‘abcdef’ LIKE NULL, NULL LIKE ‘%’, all result into the value NULL. NULL is not USED to perform comparisons.



Discussion

No Comment Found

Related InterviewSolutions