1.

To measure the length of a string in bytes, the operator used is __________(a) CHAR_LENGTH()(b) LENGTH()(c) LEN()(d) SIZE()I got this question in final exam.This intriguing question originated from Data Value Categories in chapter Data Types of MySQL

Answer»

The CORRECT choice is (b) LENGTH()

The best EXPLANATION: The LENGTH() OPERATOR is used to measure the length of a MySQL STRING in terms of bytes. To measure the length of the string in terms of number of characters, CHAR_LENGTH() is used.



Discussion

No Comment Found

Related InterviewSolutions