CBSE Class 12 Informatics Practices Question 39 of 79

MySQL SQL Revision Tour — Question 7

Back to all questions
7
Question

Question 7

Write one similarity and one difference between CHAR and VARCHAR data types.

Answer

One similarity between the CHAR and VARCHAR data types in SQL is that both are used to store character data.

One difference between the CHAR and VARCHAR data types in SQL is that the Char datatype specifies a fixed length character string, while the Varchar datatype specifies a variable length string.