Vidyalelo
MySQL · Q1165

MySQL

Programming · MySQL · question 1165

Q1165

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

A.
CHAR
B.
VARCHAR
C.
TINYTEXT
D.
TEXT
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
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.