1.

Which of these types store the longest length of strings?(a) CHAR(b) VARCHAR(c) TINYTEXT(d) TEXTI had been asked this question in an online interview.This is a very interesting question from Choosing Data Types in division Data Types of MySQL

Answer»

Correct ANSWER is (d) TEXT

The explanation: in MySQL, the different string datatypes are used to store different lenghts of the string. Here, the length WOULD refer to the NUMBER of characters in the string. TEXT stores LONGER strings.



Discussion

No Comment Found

Related InterviewSolutions