Beginner SQL
Q22 / 100

Which data type is best for storing variable-length text with a maximum size, e.g. names?

Correct! Well done.

Incorrect.

The correct answer is B) VARCHAR

B

Correct Answer

VARCHAR

Explanation

VARCHAR(n) stores variable-length character strings up to a maximum length n, more space-efficient than fixed-length CHAR for varying text.

Progress
22/100