Examveda

The datatype that stores the longest length of strings is . . . . . . . .

A. CHAR

B. VARCHAR

C. TINYTEXT

D. TEXT

Answer: Option D

Solution (By Examveda Team)

This question asks about the MySQL data type that can hold the longest strings. Let's break down the options:
Option A: CHAR - This type stores fixed-length strings, meaning you specify the maximum length when creating the column.
Option B: VARCHAR - This type stores variable-length strings, allowing you to specify the maximum length but using only the space needed for the actual data.
Option C: TINYTEXT - This type stores text strings up to 255 characters.
Option D: TEXT - This type stores text strings up to 65,535 characters.

Now, comparing the options, TEXT has the largest storage capacity for strings.
Therefore, the answer is Option D: TEXT.

This Question Belongs to MySQL >> MySQL Miscellaneous

Join The Discussion

Related Questions on MySQL Miscellaneous