1.

Which type stores the longest length of strings?(a) CHAR(b) VARCHAR(c) TINYTEXT(d) TEXTI have been asked this question in an interview.The above asked question is from Database Copies topic in portion Nulls and Conditions and Miscellaneous of MySQL

Answer» CORRECT answer is (d) TEXT

To elaborate: 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